source: node_modules/ramda-adjunct/lib/isBigInt.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 752 bytes
RevLine 
[d24f17c]1"use strict";
2
3exports.__esModule = true;
4exports["default"] = void 0;
5var _ramda = require("ramda");
6/**
7 * Checks if value is a BigInt.
8 *
9 * @func isBigInt
10 * @memberOf RA
11 * @category Type
12 * @since {@link https://char0n.github.io/ramda-adjunct/2.27.0|v2.27.0}
13 * @sig * -> Boolean
14 * @param {*} val The value to test
15 * @return {boolean}
16 * @example
17 *
18 * RA.isBigInt(5); // => false
19 * RA.isBigInt(Number.MAX_VALUE); // => false
20 * RA.isBigInt(-Infinity); // => false
21 * RA.isBigInt(10); // => false
22 * RA.isBigInt(10n); // => true
23 * RA.isBigInt(BitInt(9007199254740991)); // => true
24 */
25var isBigInt = (0, _ramda.curryN)(1, (0, _ramda.pipe)(_ramda.type, (0, _ramda.identical)('BigInt')));
26var _default = isBigInt;
27exports["default"] = _default;
Note: See TracBrowser for help on using the repository browser.