Skip to content

Properties containing functions aren't replaced like numbers and other data types #3

@guiprav

Description

@guiprav
  • OS: Debian 9.
  • Node version: 6.3.1.
  • Library version: 3.0.0.

Why should properties containing functions behave differently from, say, numbers?

  • Consider: mergeDeep({ a: () => 1, b: () => 2 }, { b: () => 3, c: () => 4 }).b()
  • Expected: 3
  • Got: 2

vs.

  • Consider: mergeDeep({ a: 1, b: 2 }, { b: 3, c: 4 }).b
  • Expected: 3
  • Got: 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions