Answers for "how to make an array of a value from 1 to the number"

0

how to make an array of a value from 1 to the number

[ ...Array(N).keys() ].map( i => i+1);
Posted by: Guest on August-19-2020

Code answers related to "how to make an array of a value from 1 to the number"

Code answers related to "Javascript"

Browse Popular Code Answers by Language