MCPcopy Index your code
hub / github.com/angular/angular / removeListItem

Function removeListItem

packages/forms/src/util.ts:9–12  ·  view source on GitHub ↗
(list: T[], el: T)

Source from the content-addressed store, hash-verified

7 */
8
9export function removeListItem<T>(list: T[], el: T): void {
10 const index = list.indexOf(el);
11 if (index > -1) list.splice(index, 1);
12}

Callers 2

_unregisterOnChangeMethod · 0.90

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…