“TYPE” 方法

$t.isBigInt(value)

检查 value 是否是 BigInt

参数

value (Any): 要检查的值。

返回

(boolean): 如果 value 是一个 BigInt,那么返回 true,否则返回 false。

$t.isBigInt('123')     // false

$t.isBigInt(123)       // false

$t.isBigInt(0x1)       // false

$t.isBigInt(1n)        // true

$t.isBigInt(BigInt(1)) // true

$t.isBigInt(Infinity)  // false

$t.isBigInt(NaN)       // false

results matching ""

    No results matching ""