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

Function iterableChangesAsString

packages/core/test/change_detection/util.ts:72–100  ·  view source on GitHub ↗
({
  collection = [] as any,
  previous = [] as any,
  additions = [] as any,
  moves = [] as any,
  removals = [] as any,
  identityChanges = [] as any,
})

Source from the content-addressed store, hash-verified

70}
71
72export function iterableChangesAsString({
73 collection = [] as any,
74 previous = [] as any,
75 additions = [] as any,
76 moves = [] as any,
77 removals = [] as any,
78 identityChanges = [] as any,
79}): string {
80 return (
81 'collection: ' +
82 collection.join(', ') +
83 '\n' +
84 'previous: ' +
85 previous.join(', ') +
86 '\n' +
87 'additions: ' +
88 additions.join(', ') +
89 '\n' +
90 'moves: ' +
91 moves.join(', ') +
92 '\n' +
93 'removals: ' +
94 removals.join(', ') +
95 '\n' +
96 'identityChanges: ' +
97 identityChanges.join(', ') +
98 '\n'
99 );
100}
101
102function kvcrAsString(kvcr: KeyValueChangeRecord<string, any>) {
103 return Object.is(kvcr.previousValue, kvcr.currentValue)

Callers 2

iterableDifferToStringFunction · 0.85

Calls 1

joinMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…