Skip to content

Instantly share code, notes, and snippets.

@waghcwb
Created April 9, 2019 19:41
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 waghcwb/4bd61b03528afc68944faafa2bc5f3b8 to your computer and use it in GitHub Desktop.
Save waghcwb/4bd61b03528afc68944faafa2bc5f3b8 to your computer and use it in GitHub Desktop.
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