UNPKG

airbridge-react-native-sdk

Version:

Airbridge SDK for React Native

15 lines 775 B
export const check = { defined: (value) => (value !== undefined), undefined: (value) => (value === undefined), null: (value) => (value === null), object: (value) => (value !== null && (typeof value === 'object' || value instanceof Object)), array: (value) => (Array.isArray(value)), string: (value) => (typeof value === 'string' || value instanceof String), number: (value) => (typeof value === 'number' || value instanceof Number), function: (value) => (typeof value === 'function' || value instanceof Function), promise: (value) => (value instanceof Promise), actual: (value, actual) => (value === actual), boolean: (value) => (typeof value === 'boolean' || value instanceof Boolean), }; //# sourceMappingURL=check.js.map