Plato on Github
Report Home
node_modules/es5-ext/test/array/#/compact.js
Maintainability
69.99
Lines of code
17
Difficulty
8.86
Estimated Errors
0.16
Function weight
By Complexity
By SLOC
'use strict'; module.exports = { __generic: function (t, a) { a(t.call(this).length, 3); }, "": function (t, a) { var o, x, y, z; o = {}; x = [0, 1, "", null, o, false, undefined, true]; y = x.slice(0); a.not(z = t.call(x), x, "Returns different object"); a.deep(x, y, "Origin not changed"); a.deep(z, [0, 1, "", o, false, true], "Result"); } };