Created
July 9, 2020 21:59
-
-
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
This file contains 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 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