1.0.7 • Published 2 years ago

is-number-object v1.0.7

Weekly downloads
3,192,850
License
MIT
Repository
github
Last release
2 years ago

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

enzymewhich-boxed-primitivearchetype-libraryeasy-select-rnvuedragdropuploadimages@phil8795/pecuniarius-apideneme323112@fundefund/funde_ck@ntt_app/react-native-custom-notificationreact-native-covid-sdkgql_din_modafryxiconsprecise-jsonmutasi-bca@jttechnic/interpreter@saeon/quick-formreact-native-printer-brothersreact-native-shekhar-bridge-testcogoportutilsuncoded-connectwilscanner@khalitovadel/abstract-repository@oiti/documentoscopy-react-nativequoc-testreact-native-slider-kf@infinitebrahmanuniverse/nolb-is-n@saaspe/componentsexpand-react-bridgeopea-bootstraapluminos-ui-coresklif-ui-kitsklif-api@everything-registry/sub-chunk-1934jawwy-sdkjawwy_gamification_release@deepakorg/test@deepak757/testreact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgp149-tablesklif-uimachinebeemrcapsreact-native-jawwy_sample@bastou/jsontotsinterfacejawwy_library_newjawy_library_v1gamification-jawwy-libraryframework_test_library_sixdee_new_jawwynextjs-storiestest_lib_module_aarzzzxxxyyy321123@batbayar/superset-plugin-chart-hello-world@graines-digitales/nice-handsome-button@girhan/moko@hristo2612/capacitor-google-auth@hproinformatica/functions@humanity.cash/types@hieuquang2212/form@hansomware/tools@i-mediasolutions/capacitor-share@ikon-x/ckeditor5-custom-build-for-irrosoft@idas1/ui-component-lib@icetee/react-recaptcha-v3@ifanshx/cycgods@invrs/enzyme@innoswap/core@eki-group/svelvet@firstday/firstdayteh@gericuz/tea-fairly@glenjamin/inspect-x@glyw/react-native-tabbed-section-listreact-native-responsive-helper@epigraph/epigraph-analytics@enkeledi/react-native-week-month-date-picker@extrieve_technologies/quickcapture_react_native@fabwcie/ckeditor5-preview@faizanhaider/iconsax@farvater/open-pedigree@imrtoy/homebridge-night-light@img-arena/img-ui-mui-theme@img-arena/ui-coreflaresss@jleiva/signer-jwt@joaquinmr99/calculadorafrdrk-js-semaphorefranklampard45front-end-engineeringgamification-integration-newgalangpramono253@krwhitley/neatapticgalihariwanda29@kommunicate/kommunicate-chatbot-plugingassefals-2gassefalsgaskeunlahcuy20gaskeunnnmamang@lanz1/v-money3
1.0.7

2 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

4 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago