Skip to content

_.union should produce correct result when passed a falsey array argument. #1188

Closed
@jdalton

Description

@jdalton
_.union(null, [1,2,3]);

// => [null, 1, 2, 3]
// instead of
// => [1, 2, 3]

This can happen if you pass somthing like _.union(someString.match(...), others);.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions