UNPKG

@react-native-firebase/app

Version:

A well tested, feature rich Firebase implementation for React Native, supporting iOS & Android. Individual module support for Admob, Analytics, Auth, Crash Reporting, Cloud Firestore, Database, Dynamic Links, Functions, Messaging (FCM), Remote Config, Sto

22 lines (20 loc) 658 B
"use strict"; import FDBKeyRange from '../FDBKeyRange.js'; import { DataError } from './errors.js'; import valueToKey from './valueToKey.js'; // http://w3c.github.io/IndexedDB/#convert-a-value-to-a-key-range const valueToKeyRange = (value, nullDisallowedFlag = false) => { if (value instanceof FDBKeyRange) { return value; } if (value === null || value === undefined) { if (nullDisallowedFlag) { throw new DataError(); } return new FDBKeyRange(undefined, undefined, false, false); } const key = valueToKey(value); return FDBKeyRange.only(key); }; export default valueToKeyRange; //# sourceMappingURL=valueToKeyRange.js.map