Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

License

NotificationsYou must be signed in to change notification settings

inspect-js/is-date-object

Repository files navigation

github actionscoveragedependency statusdev dependency statusLicenseDownloads

npm badge

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

Example

varisDate=require('is-date-object');varassert=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(newRegExp('a','g')));assert.ok(isDate(newDate()));

Tests

Simply clone the repo,npm install, and runnpm test

About

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

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp