isBigInt
Determine if a value is a BigInt
63 bytes
currently in beta
Usage
Pass in a value and get a boolean telling you if the value is a bigint, using the typeof
operator.
import * as _ from 'radashi'
_.isBigInt(0n) // => true_.isBigInt(BigInt(0)) // => true_.isBigInt(12) // => false_.isBigInt('0n') // => false