Skip to content

_.indexOf with isSorted of true will incorrectly match undefined on an empty array. #1870

Closed
@jdalton

Description

_.indexOf([], undefined); // => -1
_.indexOf([], undefined, true); // => 0 but should be -1

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions