Check if value is a strict number, excluding NaNs & boxed `new Number('123'), BigInt & Infinity.
Why? Because typeof NaN === 'number', but _.isNumber(NaN) && _.isNumber(Number('foo'))) are both true!
typeof NaN === 'number'
_.isNumber(NaN)
_.isNumber(Number('foo')))
@see z.isNumber() for a more inclusive check
z.isNumber()
@see z.isAnyNumber() for the most inclusive check
z.isAnyNumber()
Check if value is a strict number, excluding NaNs & boxed `new Number('123'), BigInt & Infinity.
Why? Because
typeof NaN === 'number', but_.isNumber(NaN)&&_.isNumber(Number('foo')))are both true!@see
z.isNumber()for a more inclusive check@see
z.isAnyNumber()for the most inclusive check