is-date-like
v1.0.0
Published
Check if a value is a date or ISO string
Downloads
11
Readme
is-date-like
Check if a value is a date or ISO string
Install
$ npm install --save is-date-like
Usage
var isDateLike = require('is-date-like')
isDateLike(new Date())
//=> true
isDateLike(new Date().toISOString())
//=> true
API
isDateLike(value)
-> boolean
value
Required
Type: date
/ string
A value to check as a Date
or ISO date string.
License
MIT © Ben Drucker