Created
April 9, 2019 19:41
-
-
Save waghcwb/4bd61b03528afc68944faafa2bc5f3b8 to your computer and use it in GitHub Desktop.
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
function getArrayOfDoubles(size = 30, factor = 0.5) { | |
return Array(size).fill(0).map((item, index) => Number((index * factor).toFixed(1))).splice(1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment