is-date-object

WebJar for is-date-object

License

License

MIT
GroupId

GroupId

org.webjars.bowergithub.ljharb
ArtifactId

ArtifactId

is-date-object
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

is-date-object
WebJar for is-date-object
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/ljharb/is-date-object

Download is-date-object

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.ljharb/is-date-object/ -->
<dependency>
    <groupId>org.webjars.bowergithub.ljharb</groupId>
    <artifactId>is-date-object</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.ljharb/is-date-object/
implementation 'org.webjars.bowergithub.ljharb:is-date-object:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.ljharb/is-date-object/
implementation ("org.webjars.bowergithub.ljharb:is-date-object:1.0.1")
'org.webjars.bowergithub.ljharb:is-date-object:jar:1.0.1'
<dependency org="org.webjars.bowergithub.ljharb" name="is-date-object" rev="1.0.1">
  <artifact name="is-date-object" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.ljharb', module='is-date-object', version='1.0.1')
)
libraryDependencies += "org.webjars.bowergithub.ljharb" % "is-date-object" % "1.0.1"
[org.webjars.bowergithub.ljharb/is-date-object "1.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.0.1