MCPcopy Create free account
hub / github.com/cocos/cocos-engine / fastRemove

Method fastRemove

cocos/core/utils/array.ts:71–76  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

69 }
70
71 public fastRemove (value: T): void {
72 const index = this.array.indexOf(value);
73 if (index >= 0) {
74 this.fastRemoveAt(index);
75 }
76 }
77
78 public fastRemoveAt (i: number): void {
79 const array = this.array;

Callers

nothing calls this directly

Calls 2

fastRemoveAtMethod · 0.95
indexOfMethod · 0.45

Tested by

no test coverage detected