Socket
Socket
Sign inDemoInstall

is-number

Package Overview
Dependencies
1
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.1 to 2.0.2

7

index.js

@@ -12,8 +12,9 @@ /*!

module.exports = function isNumber(n) {
var type = typeOf(n);
module.exports = function isNumber(num) {
var type = typeOf(num);
if (type !== 'number' && type !== 'string') {
return false;
}
return (+n - +n + 1) >= 0 && n !== '';
var n = +num;
return (n - n + 1) >= 0 && num !== '';
};
{
"name": "is-number",
"description": "Returns true if the value is a number. comprehensive tests.",
"version": "2.0.1",
"version": "2.0.2",
"homepage": "https://github.com/jonschlinkert/is-number",

@@ -6,0 +6,0 @@ "author": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc