Plato on Github
Report Home
node_modules/es5-ext/date/valid-date.js
Maintainability
78.11
Lines of code
8
Difficulty
7.70
Estimated Errors
0.04
Function weight
By Complexity
By SLOC
'use strict'; var isDate = require('./is-date'); module.exports = function (x) { if (!isDate(x)) throw new TypeError(x + " is not a Date object"); return x; };