
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
is-number-object
Advanced tools
Is this value a JS Number object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Is this value a JS Number object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
var isNumber = require('is-number-object');
var assert = require('assert');
assert.notOk(isNumber(undefined));
assert.notOk(isNumber(null));
assert.notOk(isNumber(false));
assert.notOk(isNumber(true));
assert.notOk(isNumber('foo'));
assert.notOk(isNumber(function () {}));
assert.notOk(isNumber([]));
assert.notOk(isNumber({}));
assert.notOk(isNumber(/a/g));
assert.notOk(isNumber(new RegExp('a', 'g')));
assert.notOk(isNumber(new Date()));
assert.ok(isNumber(42));
assert.ok(isNumber(NaN));
assert.ok(isNumber(Infinity));
assert.ok(isNumber(new Number(42)));
Simply clone the repo, npm install
, and run npm test
v1.0.5 - 2021-05-07
9666737
node/install
instead of node/run
; use codecov
action 7815ce2
80ccb75
nyc
on all tests c9ffb74
eslint
, @ljharb/eslint-config
, aud
, auto-changelog
, tape
7e84161
0c5ec7a
dd0fb74
eslint
, @ljharb/eslint-config
, aud
, has-symbols
, tape
2d36f80
eslint
, @ljharb/eslint-config
, aud
, auto-changelog
77d3140
eslint
, @ljharb/eslint-config
, tape
75d4abf
eslint
, @ljharb/eslint-config
, tape
0c2a917
Object.prototype.toString
when Symbol.toStringTag
is shammed 8b6ebc4
auto-changelog
, tape
; add aud
62045fc
d48cd06
prepublishOnly
script for npm 7+ 827ab0d
pull_request_target
event bfed500
ce23e5e
f1ad981
FAQs
Is this value a JS Number object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
The npm package is-number-object receives a total of 30,830,495 weekly downloads. As such, is-number-object popularity was classified as popular.
We found that is-number-object demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.