Skip to content

Add Array.prototype.findLast and Array.prototype.findLastIndex #48829

Closed
@yume-chan

Description

@yume-chan

lib Update Request

Configuration Check

My compilation target is ES5 and my lib is ESNext.

Missing / Incorrect Definition

Missing Array.prototype.findLast and Array.prototype.findLastIndex

Sample Code

[3, 2, 1].findLast(x => x > 2);

Documentation Link

Proposal: https://tc39.es/proposal-array-find-from-last/ (currently stage 3 4)
Can I Use: https://caniuse.com/mdn-javascript_builtins_array_findlast (Chrome and Safari already shipped it without flags)

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptEffort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Fix AvailableA PR has been opened for this issueHelp WantedYou can do this

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions