取消Extension改为linq.List以避免forin污染

This commit is contained in:
yhh
2020-11-30 13:50:18 +08:00
parent 4c329881a1
commit 0137309d3a
21 changed files with 1642 additions and 771 deletions

View File

@@ -255,7 +255,7 @@ class ArrayUtils {
* @param item
*/
public static addIfNotPresent<T>(list: T[], item: T) {
if (list.contains(item))
if (new linq.List(list).contains(item))
return false;
list.push(item);