1.0.5 • Published 3 years ago

is-date-object v1.0.5

Weekly downloads
17,323,523
License
MIT
Repository
github
Last release
3 years ago

is-date-object Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

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

Example

var isDate = require('is-date-object');
var assert = require('assert');

assert.notOk(isDate(undefined));
assert.notOk(isDate(null));
assert.notOk(isDate(false));
assert.notOk(isDate(true));
assert.notOk(isDate(42));
assert.notOk(isDate('foo'));
assert.notOk(isDate(function () {}));
assert.notOk(isDate([]));
assert.notOk(isDate({}));
assert.notOk(isDate(/a/g));
assert.notOk(isDate(new RegExp('a', 'g')));

assert.ok(isDate(new Date()));

Tests

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

es-to-primitivedeep-equal@huyhpham/rn-linearchetype-librarycomponennentteasy-select-rnvuedragdropuploadimagesreact-native-bluetooth2killi8n-react-native-fast-imagepipihomespecify-importsbabel-specify-imports@icanpm/api-master@arisageha/react-lazyload@arisageha/react-lazyload-fix@cashremit/cr-streamline-icons@almeidaa/msreact-native-template-rfbasecloud-archive-s3airscanairscan-examplebb-chatreact-native-esc-pos-sahaab@borisovart/atol-kkt-module@frxf/frxf@phil8795/pecuniarius-apideneme323112@texttree/demo-bsa-reference-rcl@fundefund/funde_ck@ntt_app/react-native-custom-notificationreact-native-covid-sdkgql_din_modafryxiconsprecise-jsonmutasi-bca@jttechnic/interpreter@l1nyanm1ng/react-picture-viewer@saeon/quick-formcthpb-plugin-socialreact-native-printer-brothersreact-native-shekhar-bridge-testcogoportutilsuncoded-connectlevibestliblevibestlib2levilibtest19levilibtest24levilibtest25levilibtest26levilibtest27levilibtest28levilibtest29wilscanner@khalitovadel/abstract-repository@oiti/documentoscopy-react-native@respondea/cordova-plugin-v-inappbrowserquoc-testreact-native-slider-kf@infinitebrahmanuniverse/nolb-is-dcclibyarntest@saaspe/componentsexpand-react-bridgeopea-bootstraapluminos-ui-coresklif-ui-kitsklif-api@everything-registry/sub-chunk-1932jawwy-sdkjawwy_gamification_release@deepakorg/test@deepak757/testreact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgp149-tablesklif-uimachinebeemrcapsreact-native-jawwy_sample@mauriciora/heroicons@levlevin/react-portal-tooltip@materia-dex/materia-contracts-proxy@mathu01/gdpr-consent@maujzs/branch-release@max_alieksieiev/react-pdf-viewer-root@manoelmotoso/eslint-config@massivepixel/use-query@linewit/vue-router-generator@meysam213/react-leaflet@neuraiproject/chains@namtoonix/editorjs-custom-multiple-selected@ngxvoice/ngx-voicelistner@nirin100/quadratic-protocol@nirin100/quadratic-sdk@niteshkumar07/calculate@lanz1/v-money3@kylesferrazza/graphql-relay-updated@lego-js/tests@lehuyaa/my-assets
1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

9 years ago

1.0.0

9 years ago