Closed Bug 891779 Opened 12 years ago Closed 11 years ago

Needs to document Array find and findIndex

Categories

(Developer Documentation Graveyard :: JavaScript, defect, P5)

All
Other
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Jeremie, Assigned: bruant.d)

References

()

Details

(Whiteboard: c=JavaScript u=webdev p=0)

:: Developer Documentation Request Request Type: New Documentation Gecko Version: 25 Branch Technical Contact: :: Details The ES6 find and findIndex property for Array are now implemented in Gecko: * Array.prototype.find(predicate, thisArg = undefined) Returns the value or undefined if not found. * Array.prototype.findIndex(predicate, thisArg = undefined) Returns the index or -1 if not found. See ES6 spec sections 15.4.3.23 and 15.4.3.24. See also https://github.com/rwldrn/tc39-notes/blob/master/es6/2013-03/mar-14.md#410-array-extras
A website broke when that was introduced (bug 890070). TC39 is aware [1]. If too much breaks, the methods may need to be renamed. Well... that doesn't change the need for documentation... quite the opposite. Alright, let's do this!!! [1] https://mail.mozilla.org/pipermail/es-discuss/2013-July/031643.html
You need to log in before you can comment on or make changes to this bug.