Skip to content

Instantly share code, notes, and snippets.

@nirmalkar
Last active December 26, 2021 06:15
Show Gist options
  • Save nirmalkar/71025132ef0d549396977e9bbcb687a9 to your computer and use it in GitHub Desktop.
Save nirmalkar/71025132ef0d549396977e9bbcb687a9 to your computer and use it in GitHub Desktop.
//Below written code will produce array of 0 and first 3 positive integers.
const num = 3
Array.from(Array(num).keys())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment