Every line of 'javascript array from 1 to n' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
60 function createArray(N) { 61 return Array.apply(null, { length: N }).map(Number.call, Number) 62 }