Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const startValue = 2;
- const endValue = 10;
- const array = [...Array(endValue - startValue + 1)].map((_, index) => index + startValue);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement