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

Function arraySwap

packages/core/test/acceptance/integration_spec.ts:4009–4013  ·  view source on GitHub ↗
(arr: any[], indexA: number, indexB: number)

Source from the content-addressed store, hash-verified

4007}
4008
4009function arraySwap(arr: any[], indexA: number, indexB: number): void {
4010 const item = arr[indexA];
4011 arr[indexA] = arr[indexB];
4012 arr[indexB] = item;
4013}
4014
4015/**
4016 * Queries the provided `root` element for sub elements by the selector and casts the result as an

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…