8000 Add flattenProp · Issue #338 · smartprocure/futil-js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add flattenProp #338
Open
Open
@doug-patterson

Description

@doug-patterson

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)
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0