Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flattenProp #338

Open
doug-patterson opened this issue Nov 18, 2020 · 1 comment
Open

Add flattenProp #338

doug-patterson opened this issue Nov 18, 2020 · 1 comment

Comments

@doug-patterson
Copy link
Contributor

related to futil-js/contexture-export#29

Looks like it'll be handy to add this fn

let flattenProp = _.curry((prop, target) =>
  _.flow(F.expandObject(_.get(prop)), _.unset(prop))(target)
)

@daedalus28
Copy link
Contributor

first "draft" of tests are in the runkit https://runkit.com/daedalus28/flattenprop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants