3 ms·
Huh, is-number is indeed available in quite a few of my node projects. It imports another library "kindOf"... guess that support was needed as well. Looking at
by raxxorraxor 3y ago
Huh, is-number is indeed available in quite a few of my node projects. It imports another library "kindOf"... guess that support was needed as well.
Looking at it, the check might not be trivial in untyped JavaScript. Not sure which edge case this covers, so maybe you actually do need to know all the ins-and-outs of JavaScript to be sure that what you are dealing with is indeed a number.