Plato on Github
Report Home
node_modules/es5-ext/test/date/valid-date.js
Maintainability
83.14
Lines of code
12
Difficulty
9.00
Estimated Errors
0.07
Function weight
By Complexity
By SLOC
'use strict'; module.exports = function (t, a) { var d = new Date(); a(t(d), d, "Date"); a.throws(function () { t({}); }, "Object"); a.throws(function () { t({ valueOf: function () { return 20; } }); }, "Number object"); };