Skip to content

Instantly share code, notes, and snippets.

@b2whats
Last active June 13, 2016 17:55
Show Gist options
  • Save b2whats/cbbbf2515af946c8fb355c54cdeb36fe to your computer and use it in GitHub Desktop.
Save b2whats/cbbbf2515af946c8fb355c54cdeb36fe to your computer and use it in GitHub Desktop.
pipeline
const pipeline = [
array => { array.pop(); return array; },
array => array.reverse()
];
pipeline.reduce((xs, f) => f(xs), [1, 2, 3]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment