MCPcopy Index your code
hub / github.com/angular/angularfire / combineChanges

Function combineChanges

src/compat/firestore/collection/changes.ts:68–76  ·  view source on GitHub ↗
(current: DocumentChange<T>[], changes: DocumentChange<T>[], events: DocumentChangeType[])

Source from the content-addressed store, hash-verified

66 * of changes.
67 */
68export function combineChanges<T>(current: DocumentChange<T>[], changes: DocumentChange<T>[], events: DocumentChangeType[]) {
69 changes.forEach(change => {
70 // skip unwanted change types
71 if (events.indexOf(change.type) > -1) {
72 current = combineChange(current, change);
73 }
74 });
75 return current;
76}
77
78/**
79 * Splice arguments on top of a sliced array, to break top-level ===

Callers 1

sortedChangesFunction · 0.85

Calls 2

combineChangeFunction · 0.85
forEachMethod · 0.65

Tested by

no test coverage detected