Plato on Github
Report Home
node_modules/es5-ext/test/object/valid-value.js
Maintainability
75.93
Lines of code
19
Difficulty
6.00
Estimated Errors
0.12
Function weight
By Complexity
By SLOC
'use strict'; var numIsNaN = require('../../number/is-nan'); module.exports = function (t, a) { var x; a(t(0), 0, "0"); a(t(false), false, "false"); a(t(''), '', "''"); a(numIsNaN(t(NaN)), true, "NaN"); a(t(x = {}), x, "{}"); a.throws(function () { t(); }, "Undefined"); a.throws(function () { t(null); }, "null"); };