Remove toReversed and toSorted func prototypes from extern.js.

This commit is contained in:
Napalys Klicius
2024-11-13 08:29:18 +01:00
committed by GitHub
parent 5f8ff125e9
commit ef18a6e562

View File

@@ -333,15 +333,6 @@ Array.prototype.push = function(var_args) {};
*/
Array.prototype.reverse = function() {};
/**
* Returns a new array with the elements in reversed order.
*
* @this {{length: number}}
* @template T
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toReversed
*/
Array.prototype.toReversed = function() {};
/**
* Removes the first element from an array and returns that element. This
* method changes the length of the array.
@@ -380,18 +371,6 @@ Array.prototype.slice = function(opt_begin, opt_end) {};
*/
Array.prototype.sort = function(opt_compareFunction) {};
/**
* Returns a new array with the elements sorted.
*
* @param {function(T,T):number=} opt_compareFunction Specifies a function that
* defines the sort order. If omitted, the array elements are converted to strings,
* then sorted according to each character's Unicode code point value.
* @this {{length: number}|Array.}
* @template T
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toSorted
*/
Array.prototype.toSorted = function(opt_compareFunction) {};
/**
* Changes the content of an array, adding new elements while removing old
* elements.