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

Method indexOf

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

* The index of the item. * @param item - The item which want to get the index * @returns Index of the item

(item: T)

Source from the content-addressed store, hash-verified

55 * @returns Index of the item
56 */
57 indexOf(item: T): number {
58 return this._array.indexOf(item);
59 }
60
61 /**
62 * Get the array.

Callers 15

removeShapeFunction · 0.80
removeColliderMethod · 0.80
visitStructSpecifierFunction · 0.80
semanticAnalyzeMethod · 0.80
expandFunctionBodyMethod · 0.80
_onUpdateFunction · 0.80
removeAnchorMethod · 0.80
_removeComponentMethod · 0.80
_onDestroyMethod · 0.80
removeFromArrayMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected