8000 fp/update - updater is called with an empty object when path refers to a function · Issue #3203 · lodash/lodash · GitHub
[go: up one dir, main page]

Skip to content
fp/update - updater is called with an empty object when path refers to a function #3203
Closed
@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

      0