Skip to content

The first and last methods should have undefined in their return type signature #609

@rakeshpai

Description

@rakeshpai

If the array is empty, first and last return undefined, but their type signatures say that they return an array item.

(This could be considered a breaking change.)

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