Skip to content

Instantly share code, notes, and snippets.

@nattatorn-dev
Created October 15, 2017 12:14
Show Gist options
  • Save nattatorn-dev/554ce8ba07de836b0b26df5200d200b7 to your computer and use it in GitHub Desktop.
Save nattatorn-dev/554ce8ba07de836b0b26df5200d200b7 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