mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
@@ -11,3 +11,9 @@ if (!Array.prototype.findLastIndex) {
|
||||
return -1;
|
||||
};
|
||||
}
|
||||
|
||||
if (!Array.prototype.toSorted) {
|
||||
Array.prototype.toSorted = function (compareFunction) {
|
||||
return this.slice().sort(compareFunction);
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user