Plato on Github
Report Home
node_modules/es5-ext/test/function/is-arguments.js
Maintainability
68.57
Lines of code
11
Difficulty
7.98
Estimated Errors
0.10
Function weight
By Complexity
By SLOC
'use strict'; module.exports = function (t, a) { var args, dummy; args = (function () { return arguments; }()); dummy = { '0': 1, '1': 2 }; Object.defineProperty(dummy, 'length', { value: 2 }); a(t(args), true, "Arguments"); a(t(dummy), false, "Dummy"); a(t([]), false, "Array"); };