initializeNDArray
Create a n-dimensional array with given value.
- Use recursion.
- Use
Array.from()
,Array.prototype.map()
to generate rows where each is a new array initialized usinginitializeNDArray()
.
Create a n-dimensional array with given value.
Array.from()
, Array.prototype.map()
to generate rows where each is a new array initialized using initializeNDArray()
.