Skip to content

Instantly share code, notes, and snippets.

@iambowen
Last active December 21, 2015 22:38
Show Gist options
  • Save iambowen/6376281 to your computer and use it in GitHub Desktop.
Save iambowen/6376281 to your computer and use it in GitHub Desktop.
Node js implementation
@johnelf
Copy link

johnelf commented Aug 29, 2013

[1,2,3,4,5,6,7,8,9,10].filter(even_number).map(divide2)

function even_number(element){
 return element % 2 == 0
}

function divide2(element){
 return element / 2;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment