MCPcopy Create free account
hub / github.com/galacean/engine / removeByIndex

Method removeByIndex

packages/core/src/utils/SafeLoopArray.ts:36–39  ·  view source on GitHub ↗

* Remove item from the array. * @param index - The index of the array

(index: number)

Source from the content-addressed store, hash-verified

34 * @param index - The index of the array
35 */
36 removeByIndex(index: number): void {
37 this._array.splice(index, 1);
38 this._loopArrayDirty = true;
39 }
40
41 /**
42 * Remove item from array that pass the specified comparison function.

Callers 3

findAndRemoveMethod · 0.95
addSceneMethod · 0.80
removeSceneMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected