Skip to content

Instantly share code, notes, and snippets.

@psynewave
Created July 9, 2020 21:59
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 psynewave/5c97aab9d52a6da31b349e3681be7fea to your computer and use it in GitHub Desktop.
Save psynewave/5c97aab9d52a6da31b349e3681be7fea to your computer and use it in GitHub Desktop.
A one liner for generating a filled array of integers starting with 1
const generateSeriesIntegers = len => [ ...Array(len).keys() ].map( i => i + 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment