Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to create empty two dimensional array in javascript

var value = 'foo'; // by default
var myGrid = [...Array(6)].map(e => Array(6).fill(value));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #empty #dimensional #array #javascript
ADD COMMENT
Topic
Name
8+1 =