mirror of
https://gitee.com/dgflash/oops-framework.git
synced 2026-06-09 19:22:11 +08:00
游戏初始化流程模板
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: dgflash
|
||||
* @Date: 2021-08-11 16:41:12
|
||||
* @LastEditors: dgflash
|
||||
* @LastEditTime: 2021-09-08 09:58:20
|
||||
* @LastEditTime: 2022-01-24 15:00:52
|
||||
*/
|
||||
/**
|
||||
* 数组工具
|
||||
@@ -74,15 +74,6 @@ export default class ArrayUtil {
|
||||
return array;
|
||||
}
|
||||
|
||||
/**
|
||||
* 数组去重
|
||||
* @param array 目标数组
|
||||
*/
|
||||
public static removeRepeated(array: any[]): any[] {
|
||||
let newArray = [...new Set(array)];
|
||||
return newArray;
|
||||
}
|
||||
|
||||
/** 删除数组中指定项 */
|
||||
public static removeItem(array: any[], item: any) {
|
||||
var temp = array.concat();
|
||||
|
||||
Reference in New Issue
Block a user