Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to map through array of iterators

let qty = 10;
let numToArray = [...Array.from(Array(qty)).keys()];
//  (10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
numToArray.map(x =>{
console.log(x)
})
 
PREVIOUS NEXT
Tagged: #map #array #iterators
ADD COMMENT
Topic
Name
8+7 =