biofriction-wp-theme/node_modules/es5-ext/test/function/is-arguments.js

14 lines
288 B
JavaScript
Raw Normal View History

2021-10-26 14:18:09 +02:00
"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");
};