
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
fast-isnumeric
Advanced tools
The fast way to check if a JS object is numeric
npm install fast-isnumeric
var isNumeric = require('fast-isnumeric');
isNumeric(/* any JS object */);
Run comparison on jsperf: http://jsperf.com/isnumeric-jquery-and-alternate/5
Please look up the test cases in test.js before using this module.
Most importantly, fast-isnumeric
returns false on number and string
constructors. That is, isNumeric(new Number(1))
and isNumeric(new String('1'))
are false.
Test locally with karma:
npm test
In plotly's javascript graphing library
plotly.js numerical objects must be accounted
for in numerous hot code paths. Inspired by Jon Schlinkert's
is-number, fast-isnumeric
is
significantly simplified and sped up by ignoring number and string constructors.
Alex Johnson | https://github.com/alexcjohnson
Copyright (c) 2015 Alex Johnson Released under the MIT license.
FAQs
The fast way to check if a JS object is numeric
The npm package fast-isnumeric receives a total of 192,977 weekly downloads. As such, fast-isnumeric popularity was classified as popular.
We found that fast-isnumeric demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.