is-number icon indicating copy to clipboard operation
is-number copied to clipboard

JavaScript/Node.js utility. Returns `true` if the value is a number or string number. Useful for checking regex match results, user input, parsed strings, etc.

Results 14 is-number issues
Sort by recently updated
recently updated
newest added

[BigInt](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) can represent a value that can be represented by a number or larger. This now checks if it is representing a value that can be represented by a Javascript...

https://github.com/jonschlinkert/is-number/blob/98e8ff1da1a89f93d1397a24d7413ed15421c139/benchmark/index.js#L83 Think `val` should be named `num` Same thing with https://github.com/jonschlinkert/is-number/blob/98e8ff1da1a89f93d1397a24d7413ed15421c139/benchmark/index.js#L57

Since this is perhaps unexpected by some, I firgured it's worth showing in the readme.

It should probably be mentioned somewhere that this returns false for integer strings that are outside `Number.MAX_SAFE_INTEGER` and `Number.MIN_SAFE_INTEGER`, due to `Number.isFinite` not being able to handle large integers. e.g.:...

In addition to being restricted to 32bit values as others have mentioned, it also is outdated as JS now supports BigInts, which are numbers, and therefore should be supported.

"typeof" is expensive...

–2147483648 and 2147483647 is unable to get pass

![image](https://user-images.githubusercontent.com/25013640/190434324-e3f03b24-42f2-4854-80b6-facfa983f377.png) Extremely faster speeds on "all" tests. Also not significantly worse in individual tests.