Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit 7b07ae3

Browse files
refactor(database): import utility from angularfire2
1 parent af8dc79 commit 7b07ae3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/database.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*/ /** */
44
import { Inject, Injectable } from '@angular/core';
55
import { AngularFire, FirebaseListObservable, FirebaseObjectObservable } from 'angularfire2';
6+
import { isNil } from 'angularfire2/utils';
67
import { FirebaseListFactoryOpts, FirebaseObjectFactoryOpts } from 'angularfire2/interfaces';
78

89
import { AfoListObservable } from './afo-list-observable';
@@ -301,14 +302,6 @@ export class AngularFireOfflineDatabase {
301302
}
302303
}
303304
/**
304-
* Utility function used to check if an value exists.
305-
*/
306-
export function isNil(obj: any): boolean {
307-
return obj === undefined || obj === null;
308-
}
309-
/**
310-
* The AngularFire2 unwrap function.
311-
*
312305
* Adds the properies of `$key`, `$value`, `$exists` as required by AngularFire2
313306
*/
314307
export function unwrap(key: string, value: any, exists) {

0 commit comments

Comments
 (0)