MCPcopy
hub / github.com/mathuo/dockview / remove

Function remove

packages/dockview-core/src/array.ts:65–73  ·  view source on GitHub ↗
(array: T[], value: T)

Source from the content-addressed store, hash-verified

63}
64
65export function remove<T>(array: T[], value: T): boolean {
66 const index = array.findIndex((t) => t === value);
67
68 if (index > -1) {
69 array.splice(index, 1);
70 return true;
71 }
72 return false;
73}

Callers 3

addMethod · 0.90
removeMethod · 0.90
array.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…