RockPaperScissors/node_modules/vali-date/index.js
2021-11-30 22:03:51 +01:00

4 lines
84 B
JavaScript

'use strict';
module.exports = function (str) {
return !isNaN(Date.parse(str));
};