added whole system from ola4doc
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
var isDate = require('./is-date');
|
||||
|
||||
module.exports = function (x) {
|
||||
if (!isDate(x) || isNaN(x)) throw new TypeError(x + " is not valid Date object");
|
||||
return x;
|
||||
};
|
||||
Reference in New Issue
Block a user