jadjoubran / codetogo.io

🚀 JavaScript code to go - Find updated snippets for common JavaScript use cases
https://codetogo.io
MIT License
233 stars 30 forks source link

Use Case Suggestion: range #253

Closed simeor closed 8 months ago

simeor commented 3 years ago

method like range() for an array

eg: [...Array(5).keys()]; => [0, 1, 2, 3, 4]

jadjoubran commented 8 months ago

Thank you 👍🏼 Create range in JavaScript