Skip to content

Instantly share code, notes, and snippets.

@rooven
Created September 19, 2018 17:57
Show Gist options
  • Save rooven/057dee3b2a217e141645b9803709c928 to your computer and use it in GitHub Desktop.
Save rooven/057dee3b2a217e141645b9803709c928 to your computer and use it in GitHub Desktop.
Declarative pattern
const double = (arr) => arr.map((number) => number * 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment