Skip to content

Instantly share code, notes, and snippets.

@ericelliott
Created May 25, 2016 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericelliott/b12b05d18b0561b26e92a82650c12987 to your computer and use it in GitHub Desktop.
Save ericelliott/b12b05d18b0561b26e92a82650c12987 to your computer and use it in GitHub Desktop.
range fixed
const range = (start, end) => (
Array.from({ length: end - start + 1 }, (x, i) => i + start)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment