Plato on Github
Report Home
node_modules/es5-ext/date/is-date.js
Maintainability
88.25
Lines of code
9
Difficulty
9.63
Estimated Errors
0.06
Function weight
By Complexity
By SLOC
'use strict'; var toString = Object.prototype.toString , id = toString.call(new Date()); module.exports = function (x) { return (x && ((x instanceof Date) || (toString.call(x) === id))) || false; };