mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Remove toReversed and toSorted func prototypes from extern.js.
This commit is contained in:
@@ -333,15 +333,6 @@ Array.prototype.push = function(var_args) {};
|
|||||||
*/
|
*/
|
||||||
Array.prototype.reverse = function() {};
|
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
|
* Removes the first element from an array and returns that element. This
|
||||||
* method changes the length of the array.
|
* 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) {};
|
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
|
* Changes the content of an array, adding new elements while removing old
|
||||||
* elements.
|
* elements.
|
||||||
|
|||||||
Reference in New Issue
Block a user