Skip to content

Instantly share code, notes, and snippets.

@tjconcept
Last active December 4, 2015 09:01
Show Gist options
  • 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