type t = {
id:int ,
name: string,
marks: array<array>
}
let newF = () => {
let cxf = {id:0, name: “”, marks:[[]]}
let newcfx = {id:1, name: “”, marks:[[]]}
cxf.marks->Array.getUnsafe(0)->Js.Array.push(newcfx)
}
getting the Js.Array.t<array> (defined as array<array>) error while trying to push it to Js.Array.push(newcfx)