UNPKG

511 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.isBigInt = void 0;
4/**
5 * @name isBigInt
6 * @summary Tests for a `BigInt` object instance.
7 * @description
8 * Checks to see if the input object is an instance of `BigInt`
9 * @example
10 * <BR>
11 *
12 * ```javascript
13 * import { isBigInt } from '@polkadot/util';
14 *
15 * console.log('isBigInt', isBigInt(123_456n)); // => true
16 * ```
17 */
18function isBigInt(value) {
19 return typeof value === 'bigint';
20}
21exports.isBigInt = isBigInt;