import { Observable } from 'rxjs' ; import { map } from 'rxjs/operators' ; import * as firebase from 'firebase' ; export const snapshotToValue = ( source ) => source . pipe ( map ( snapshot => snapshot . val ( ) ) ) ;