Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

es6 create array of multiples

let arr = [...new Array(parseInt(length)).keys()];
arr = Array.from(arr, item => item+1);
arr = Array.from(arr, item => item*parseInt(multiplication));
 
PREVIOUS NEXT
Tagged: #create #array #multiples
ADD COMMENT
Topic
Name
4+3 =