[add] script

[add] HoldButton
This commit is contained in:
2022-05-02 21:04:23 +08:00
parent 26f0052207
commit 119db9b977
39 changed files with 5052 additions and 2726 deletions

View File

@@ -4,6 +4,8 @@ declare interface Array<T> {
* @param index
*/
ExRemoveAt(index: number): T;
/** 移除全部值 */
Clear(): void;
/**
* 物件陣列排序asc&key陣列長度請一樣
* PS. boolean 帶false是先true在false
@@ -22,6 +24,13 @@ Array.prototype.ExRemoveAt || Object.defineProperty(Array.prototype, "ExRemoveAt
}
});
Array.prototype.Clear || Object.defineProperty(Array.prototype, "Clear", {
enumerable: false,
value: function (): void {
this.length = 0;
}
});
Array.prototype.ObjectSort || Object.defineProperty(Array.prototype, "ObjectSort", {
enumerable: false,
/**