parent
e0c3ac84a2
commit
80d27273a2
|
@ -11,3 +11,9 @@ if (!Array.prototype.findLastIndex) {
|
|||
return -1;
|
||||
};
|
||||
}
|
||||
|
||||
if (!Array.prototype.toSorted) {
|
||||
Array.prototype.toSorted = function (compareFunction) {
|
||||
return this.slice().sort(compareFunction);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue