DEV Community

Discussion on: How to create range in Javascript

Collapse
 
andresporras3423 profile image
Oscar Andrés Russi Porras

Like this:
[...Array().keys()];
this way you get the range from 0 til -1