Determines whether the provided value is a number (not a type of bigint).
number
bigint
Use isBigInt to check if a value is a bigint.
isBigInt
0
true
1.0
1
0xFFF
4095
0b100
4
1e5
100000
NaN
Infinity
BigInt(1)
1n
false
BigInt(0xE)
14n
The value to be checked.
true if the value is a number, otherwise false.
Determines whether the provided value is a
number(not a type ofbigint).Use
isBigIntto check if a value is abigint.00true1.01true0xFFF4095true0b1004true1e5100000trueNaNNaNtrueInfinityInfinitytrueBigInt(1)1nfalseBigInt(0xE)14nfalse1n1nfalse