Skip to content

Array.prototype.includes() does not return the index, but boolean #246

@mestaritonttu

Description

@mestaritonttu

.includes should not be under "Search for a specified value within an array and return its index (or -1 if not found)."

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes

The includes() method determines whether an array includes a certain value among its entries, returning true or false as appropriate.

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