MCPcopy
hub / github.com/angular/angular / icrAsString

Function icrAsString

packages/core/test/change_detection/util.ts:61–70  ·  view source on GitHub ↗
(icr: IterableChangeRecord<V>)

Source from the content-addressed store, hash-verified

59}
60
61function icrAsString<V>(icr: IterableChangeRecord<V>): string {
62 return icr.previousIndex === icr.currentIndex
63 ? stringify(icr.item)
64 : stringify(icr.item) +
65 '[' +
66 stringify(icr.previousIndex) +
67 '->' +
68 stringify(icr.currentIndex) +
69 ']';
70}
71
72export function iterableChangesAsString({
73 collection = [] as any,

Callers 1

iterableDifferToStringFunction · 0.85

Calls 1

stringifyFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…