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

20 lines (18 loc) 500 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; // https://heycam.github.io/webidl/#EnforceRange const enforceRange = (num, type) => { const min = 0; const max = type === 'unsigned long' ? 4294967295 : 9007199254740991; if (isNaN(num) || num < min || num > max) { throw new TypeError(); } if (num >= 0) { return Math.floor(num); } }; var _default = exports.default = enforceRange; //# sourceMappingURL=enforceRange.js.map