Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

is-number-object

Package Overview
Dependencies
1
Maintainers
1
Versions
7
Issues
File Explorer

Advanced tools

is-number-object

Is this value a JS Number object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

    1.0.7latest

Version published
Maintainers
1
Weekly downloads
22,899,143
decreased by-2.13%

Weekly downloads

Changelog

Source

v1.0.7 - 2022-04-01

Commits

Readme

Source

is-number-object Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this value a JS Number object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

Example

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)));

Tests

Simply clone the repo, npm install, and run npm test

Keywords

FAQs

What is is-number-object?

Is this value a JS Number object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

Is is-number-object popular?

The npm package is-number-object receives a total of 18,465,556 weekly downloads. As such, is-number-object popularity was classified as popular.

Is is-number-object well maintained?

We found that is-number-object demonstrated a healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 02 Apr 2022
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc