Created
February 25, 2022 22:41
-
-
Save fronterior/a5a083e12f0705f9a6ffb878651a27d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const range = (first, last, dist = (last - first) / Math.abs(last - first)) => Array.from({length: Math.ceil((last - first) / dist)}, (_, i) => first + i * dist); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment