Skip to content

Instantly share code, notes, and snippets.

@tjconcept
Last active December 4, 2015 09:01
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 tjconcept/d35997d9fa19a2529ea1 to your computer and use it in GitHub Desktop.
Save tjconcept/d35997d9fa19a2529ea1 to your computer and use it in GitHub Desktop.
Array.from({ length: 1000 }, (v, k) => k)
.filter(x => x%3 === 0 || x%5 === 0)
.reduce((t, x) => t + x, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment