ramda-adjunct
Version:
Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.
28 lines (25 loc) • 682 B
JavaScript
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = require("ramda");
/**
* Checks if value is a BigInt.
*
* @func isBigInt
* @memberOf RA
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @example
*
* RA.isBigInt(5); // => false
* RA.isBigInt(Number.MAX_VALUE); // => false
* RA.isBigInt(-Infinity); // => false
* RA.isBigInt(10); // => false
* RA.isBigInt(10n); // => true
* RA.isBigInt(BitInt(9007199254740991)); // => true
*/
var isBigInt = (0, _ramda.curryN)(1, (0, _ramda.pipe)(_ramda.type, (0, _ramda.identical)('BigInt')));
var _default = isBigInt;
exports["default"] = _default;
;