UNPKG

bigmoment

Version:

Date manipulation that can track the age of the universe

5 lines (4 loc) 146 B
exports.isDay = function(){ let input = this._i return typeof input === 'string' && new RegExp("^-?[0-9]{4}-[0-9]{2}-[0-9]{2}$").test(input) }