1.0.0 • Published 9 years ago
is-date-like v1.0.0
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
1.0.0
9 years ago