UNPKG

378 BTypeScriptView Raw
1/**
2 * @name isBigInt
3 * @summary Tests for a `BigInt` object instance.
4 * @description
5 * Checks to see if the input object is an instance of `BigInt`
6 * @example
7 * <BR>
8 *
9 * ```javascript
10 * import { isBigInt } from '@polkadot/util';
11 *
12 * console.log('isBigInt', isBigInt(123_456n)); // => true
13 * ```
14 */
15export declare function isBigInt(value: unknown): value is bigint;