1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/is-date-object
詹力 1a19ec897f 删除无关模块 2024-01-16 21:26:16 +08:00
..
.eslintrc i4 2023-12-18 13:12:25 +08:00
CHANGELOG.md 完善文档,完善若干细节 2023-12-28 23:41:32 +08:00
LICENSE i4 2023-12-18 13:12:25 +08:00
README.md 完善文档,完善若干细节 2023-12-28 23:41:32 +08:00
index.js 完善文档,完善若干细节 2023-12-28 23:41:32 +08:00
package.json 删除无关模块 2024-01-16 21:26:16 +08:00

README.md

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