Skip to content

Instantly share code, notes, and snippets.

View NoahDavidATL's full-sized avatar

Noah David NoahDavidATL

View GitHub Profile
@NoahDavidATL
NoahDavidATL / nesting-composition.js
Last active August 28, 2017 13:32 — forked from ericelliott/nesting-composition.js
Nesting function composition
const toSlug = input => encodeURIComponent(join('-')(map(toLowerCase)(split(' ')(input))));
console.log(toSlug('JS Cheerleader')); // 'js-cheerleader'