Skip to content

bendrucker/is-date-like

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published