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

Function kvChangesAsString

packages/core/test/change_detection/util.ts:113–127  ·  view source on GitHub ↗
(kvChanges: KeyValueChanges<string, any>)

Source from the content-addressed store, hash-verified

111}
112
113export function kvChangesAsString(kvChanges: KeyValueChanges<string, any>) {
114 const map: string[] = [];
115 const previous: string[] = [];
116 const changes: string[] = [];
117 const additions: string[] = [];
118 const removals: string[] = [];
119
120 kvChanges.forEachItem((r) => map.push(kvcrAsString(r)));
121 kvChanges.forEachPreviousItem((r) => previous.push(kvcrAsString(r)));
122 kvChanges.forEachChangedItem((r) => changes.push(kvcrAsString(r)));
123 kvChanges.forEachAddedItem((r) => additions.push(kvcrAsString(r)));
124 kvChanges.forEachRemovedItem((r) => removals.push(kvcrAsString(r)));
125
126 return testChangesAsString({map, previous, additions, changes, removals});
127}
128
129export function testChangesAsString({
130 map,

Callers 1

Calls 8

kvcrAsStringFunction · 0.85
testChangesAsStringFunction · 0.85
forEachItemMethod · 0.65
forEachPreviousItemMethod · 0.65
forEachChangedItemMethod · 0.65
forEachAddedItemMethod · 0.65
forEachRemovedItemMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…