Skip to content

merge should not ignore empty array #1313

Closed
@vincentcr

Description

@vincentcr
_.merge({ x:1, a:[1,2,3]}, {y:0,a:[]})

yields:

{ x: 1,
  a: [ 1, 2, 3 ],
  y: 0 }

but it should be:

{ x: 1,
  a: [ ],
  y: 0 }

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