MCPcopy
hub / github.com/andremichelle/openDAW / remove

Method remove

packages/lib/dsp/src/events.ts:329–335  ·  view source on GitHub ↗
(event: E)

Source from the content-addressed store, hash-verified

327 }
328
329 remove(event: E): boolean {
330 ++this.modCount
331 const index = this.#array.indexOf(event)
332 if (-1 === index) {return false}
333 this.#array.splice(index, 1)
334 return true
335 }
336
337 contains(event: E): boolean {
338 const size: int = this.#array.length

Callers

nothing calls this directly

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected