Skip to content

Instantly share code, notes, and snippets.

@rowlandekemezie
Created January 29, 2018 21:53
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 rowlandekemezie/5d94d14c952bc72366820f1d570239a3 to your computer and use it in GitHub Desktop.
Save rowlandekemezie/5d94d14c952bc72366820f1d570239a3 to your computer and use it in GitHub Desktop.
Utility functions
// Create a range of values
function range(start, end) {
return Array.apply(null, Array(end - start + 1))
.map((_, index) => index + start);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment