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

Function shallowEqualArrays

packages/router/src/utils/collection.ts:13–19  ·  view source on GitHub ↗
(a: readonly any[], b: readonly any[])

Source from the content-addressed store, hash-verified

11import {firstValueFrom} from './first_value_from';
12
13export function shallowEqualArrays(a: readonly any[], b: readonly any[]): boolean {
14 if (a.length !== b.length) return false;
15 for (let i = 0; i < a.length; ++i) {
16 if (!shallowEqual(a[i], b[i])) return false;
17 }
18 return true;
19}
20
21export function shallowEqual(
22 a: {[key: string | symbol]: any},

Callers 1

advanceActivatedRouteFunction · 0.90

Calls 1

shallowEqualFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…