项目原始demo,不改动
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
xzx 2ec7739298 [Version] V.3.8 4 년 전
..
.eslintrc [Version] V.3.8 4 년 전
.jscs.json [Version] V.3.8 4 년 전
.npmignore [Version] V.3.8 4 년 전
.travis.yml [Version] V.3.8 4 년 전
CHANGELOG.md [Version] V.3.8 4 년 전
LICENSE [Version] V.3.8 4 년 전
Makefile [Version] V.3.8 4 년 전
README.md [Version] V.3.8 4 년 전
index.js [Version] V.3.8 4 년 전
package.json [Version] V.3.8 4 년 전
test.js [Version] V.3.8 4 년 전

README.md

is-date-object Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

browser support

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