Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Arbitrary data can be the subject of functional behavior
const space = (w1, w2) => `${w1} ${w2}`;
const sentence = words => `${words.reduce(space)}.`;
sentence(['i', 'heart', 'functions']); // => "i heart functions."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.