Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fp/update - updater is called with an empty object when path refers to a function #3203

@oren-hollander

Description

@oren-hollander
import { update, identity } from 'lodash/fp'
const original = { f: () => 1 }
const updated = update('f', identity, original)

updated.f is an empty object instead of f

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions