Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
how to make an array of a value from 1 to the number
hh bbb
Programming language:
Whatever
2021-08-08 04:06:49
0
Q:
how to make an array of a value from 1 to the number
Pavel Tarouts
Code:
Whatever
2021-07-17 15:52:30
[ ...Array(N).keys() ].map( i => i+1);
0
Tags
number
array
value
make
how
Related
how to make a numpy array
numpy array heaviside float values to 0 or 1
list to np array
how to normalize a 1d numpy array
why a array are not int
how to sum up an array
convert array to number
generate array range
assigning an array with random numbers
numpy list to array
New to Communities?
Join the community