Skip to content

Instantly share code, notes, and snippets.

@jtenner
Last active December 27, 2015 12:18
Show Gist options
  • Save jtenner/7324487 to your computer and use it in GitHub Desktop.
Save jtenner/7324487 to your computer and use it in GitHub Desktop.
function multiplyByTwo(item){return item*2;}
function addTwo(item){return item+2;}
function applyTransform(){
return Array.prototype.map.call(arguments, addTwo)
.map(multiplyByTwo)
.map(addTwo);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment