GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

13 results across 6 corpora for Array.prototype.findLast().

Encyclopedia 1

ECMAScript version history

nt): int { return a + b; } The following primitive types were defined: Variables could have the following modifiers: static : makes a variable a class variable prototype : adds a variable to the class prototype object, with a get/set accessor Classes were given the following modifiers: dynamic : allows properties to be added to instances at runtime final : cannot be extended by other classes internal : visible only t

e01 Encyclopedia · CC BY-SA 4.0 · https://en.wikipedia.org/w/index.php?oldid=1377855823

Papers 6

Developer library 6

Firefox 104 release notes for developers

s released on August 23, 2022. ## Changes for web developers ### HTML No notable changes. ### CSS No notable changes. ### JavaScript - The methods Array.prototype.findLast(), Array.prototype.findLastIndex(), TypedArray.prototype.findLast(), and TypedArray.prototype.findLastIndex() are now supported. These are used to find the value and index (respectively) of the last element in an Array or TypedArray that m

Array

ed elements. This means that they can be called on array-like objects as well. ```js const arrayLike = { 0: "a", 1: "b", length: 2, }; console.log(Array.prototype.join.call(arrayLike, "+")); // 'a+b' ``` #### Normalization of the length property The `length` property is [converted to an integer](/docs/Web/JavaScript/Reference/Global_Objects/Number#integer_conversion) and then clamped to the range between 0 a

Array.prototype.findLast()

ess than `length`. ```js const arrayLike = { length: 3, 0: 2, 1: 7.3, 2: 4, 3: 3, // ignored by findLast() since length is 3 }; console.log( Array.prototype.findLast.call(arrayLike, (x) => Number.isInteger(x)), ); // 4 ``` ## Specifications ## Browser compatibility ## See also - [Polyfill of `Array.prototype.findLast` in `core-js`](https://core-js.io/docs/features/ecmascript/array) - [es-shims po

Array.prototype.findIndex()

ss than `length`. ```js const arrayLike = { length: 3, "-1": 0.1, // ignored by findIndex() since -1 < 0 0: 2, 1: 7.3, 2: 4, }; console.log( Array.prototype.findIndex.call(arrayLike, (x) => !Number.isInteger(x)), ); // 1 ``` ## Specifications ## Browser compatibility ## See also - [Polyfill of `Array.prototype.findIndex` in `core-js`](https://core-js.io/docs/features/ecmascript/array) - [es-shims

Array.prototype.findLastIndex()

han `length`. ```js const arrayLike = { length: 3, 0: 2, 1: 7.3, 2: 4, 3: 3, // ignored by findLastIndex() since length is 3 }; console.log( Array.prototype.findLastIndex.call(arrayLike, (x) => Number.isInteger(x)), ); // 2 ``` ## Specifications ## Browser compatibility ## See also - [Polyfill of `Array.prototype.findLastIndex` in `core-js`](https://core-js.io/docs/features/ecmascript/array) - [e

Array.prototype.find()

teger less than `length`. ```js const arrayLike = { length: 3, "-1": 0.1, // ignored by find() since -1 < 0 0: 2, 1: 7.3, 2: 4, }; console.log(Array.prototype.find.call(arrayLike, (x) => !Number.isInteger(x))); // 7.3 ``` ## Specifications ## Browser compatibility ## See also - [Polyfill of `Array.prototype.find` in `core-js`](https://core-js.io/docs/features/ecmascript/array) - [es-shims polyfill

JSON results · Services directory