Answers for "es6 create array of multiples"

0

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));
Posted by: Guest on September-21-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language