Skip to content

Instantly share code, notes, and snippets.

@gilligan gilligan/example.js Secret
Created Dec 12, 2015

Embed
What would you like to do?
const type = content.type;
const removeTypePrefix = R.replace(`${type}.`, '');
const adjustKeyPrefixes = R.map(R.adjust(removeTypePrefix, 0));
const mapKeys = R.pipe(
R.toPairs,
adjustKeyPrefixes,
R.fromPairs
);
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.