Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

is-date-object

Package Overview
Dependencies
1
Maintainers
1
Versions
6
Issues
File Explorer

Advanced tools

is-date-object

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

    1.0.5latest

Version published
Maintainers
1
Weekly downloads
22,108,723
decreased by-11.23%

Weekly downloads

Changelog

Source

v1.0.5 - 2021-08-05

Commits

  • [meta] remove .jscs.json 31c731c
  • [Fix] use has-tostringtag to behave correctly in the presence of symbol shams 17a6df4
  • [Dev Deps] update eslint, auto-changelog, tape 79db3af

Readme

Source

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

Keywords

FAQs

What is is-date-object?

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

Is is-date-object popular?

The npm package is-date-object receives a total of 17,055,519 weekly downloads. As such, is-date-object popularity was classified as popular.

Is is-date-object well maintained?

We found that is-date-object demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 05 Aug 2021

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc