Socket
Socket
Sign inDemoInstall

is-numeric

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.0.4

8

is-numeric.js

@@ -5,6 +5,6 @@ (function(root) {

function isNumeric(v) {
if (typeof v === 'number') return true;
var s = (v||'').toString();
if (!s) return false;
return !isNaN(s);
if (typeof v === 'number' && !isNaN(v)) return true;
v = (v||'').toString();
if (!v) return false;
return !isNaN(v);
}

@@ -11,0 +11,0 @@

{
"name": "is-numeric",
"version": "0.0.3",
"version": "0.0.4",
"description": "Predicate that returns true for numeric values.",

@@ -5,0 +5,0 @@ "main": "is-numeric.js",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc