Skip to content

Instantly share code, notes, and snippets.

@nattatorn-dev
Last active October 15, 2017 12:14
Show Gist options
  • Save nattatorn-dev/af3e76ed36e17f88e98a2ec3606b2446 to your computer and use it in GitHub Desktop.
Save nattatorn-dev/af3e76ed36e17f88e98a2ec3606b2446 to your computer and use it in GitHub Desktop.
const indexByKey = key => pipe(
indexBy(prop(key)),
map(omit([key])) // eslint-disable-line
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment