
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.4 - 2019-12-18
792b5aa
node
v12.4
, v11.15
, v10.15
, v9.11
, v8.15
, v7.10
, v6.17
, v5.12
, v4.9
; use nvm install-latest-npm
dc66db7
eslint
, tape
, semver
; use my personal shared eslint
config 7660fed
jscs
f1fee97
auto-changelog
4b1c225
379b979
covert
, jscs
, eslint
, semver
16d2af8
eslint
, @ljharb/eslint-config
, covert
, is
, replace
, semver
, tape
21c0f04
is
, tape
, covert
, jscs
, editorconfig-tools
, nsp
, eslint
, semver
. Add replace
. Use ^
instead of ~
. 19d6ee3
eslint
d32754b
eslint
, @ljharb/eslint-config
, replace
1df8165
tape
, jscs
, eslint
, @ljharb/eslint-config
675372b
80e29c4
node
v12.7
, v10.16
, v8.16
287a968
iojs
and node
versions. 11c98a2
022d026
7f52710
is
, jscs
, nsp
, eslint
, @ljharb/eslint-config
, semver
bc8cd50
npx aud
instead of nsp
or npm audit
with hoops 1f9200b
node
v12.11
706d50a
jscs
e3591a4
io.js
v3.3
, node
v4.1
baf4ee7
nsp
, eslint
61b18d5
eslint
, semver
52e61bd
eslint
, @ljharb/eslint-config
, has-symbols
; add safe-publish-latest
79db7f6
677b9b4
io.js
v2.2
e8a38b2
funding
field 85315e7
eslint
, tape
f3581aa
eclint
instead of editorconfig-tools
7b53680
semver
, tape
d6b524a
tape
, eslint
be19203
io.js
v2.1
feb7ba6
io.js
v3.0
7be1f0a
tape
d9a2318
a6cd411
io.js
v2.4
46c2e7f
io.js
v2.3
9c344b0
f8c446e
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.