MCPcopy Create free account
hub / github.com/Comfy-Org/litegraph.js / removeFromArray

Function removeFromArray

src/utils/collections.ts:104–110  ·  view source on GitHub ↗
(array: T[], value: T)

Source from the content-addressed store, hash-verified

102}
103
104export function removeFromArray<T>(array: T[], value: T): boolean {
105 const index = array.indexOf(value)
106 const found = index !== -1
107
108 if (found) array.splice(index, 1)
109 return found
110}

Callers 1

connectMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected