MCPcopy Create free account
hub / github.com/angular/angular / arraySwap

Function arraySwap

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

Source from the content-addressed store, hash-verified

3672}
3673
3674function arraySwap(arr: any[], indexA: number, indexB: number): void {
3675 const item = arr[indexA];
3676 arr[indexA] = arr[indexB];
3677 arr[indexB] = item;
3678}
3679
3680/**
3681 * 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