MCPcopy
hub / github.com/angular/angularfire / validateEventsArray

Function validateEventsArray

src/compat/database/list/utils.ts:3–8  ·  view source on GitHub ↗
(events?: any[])

Source from the content-addressed store, hash-verified

1import { isNil } from '../utils';
2
3export function validateEventsArray(events?: any[]) {
4 if (isNil(events) || events.length === 0) {
5 events = ['child_added', 'child_removed', 'child_changed', 'child_moved'];
6 }
7 return events;
8}

Callers 2

snapshotChangesFunction · 0.90
stateChangesFunction · 0.90

Calls 1

isNilFunction · 0.90

Tested by

no test coverage detected