my-idlers/node_modules/es5-ext/test/function/is-arguments.js
cp6 fd22b0bf58 V2 (Laravel re-make)
V2 (Laravel re-make)
2022-03-06 02:02:12 +11:00

12 lines
287 B
JavaScript
Vendored

"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");
};