Socket
Socket
Sign inDemoInstall

is-numeric

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-numeric - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

2

is-numeric.js

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

if (typeof v === 'number' && !isNaN(v)) return true;
v = (v||'').toString();
v = (v||'').toString().trim();
if (!v) return false;

@@ -9,0 +9,0 @@ return !isNaN(v);

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

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

@@ -54,2 +54,3 @@ # is-numeric

console.log(isNumeric(null)); // false
console.log(isNumeric(NaN)); // false
```

@@ -56,0 +57,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc