1.0.0 • Published 9 years ago

is-date-like v1.0.0

Weekly downloads
129
License
MIT
Repository
github
Last release
9 years ago

is-date-like Build Status

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