is-arguments.js 288 B

12345678910111213
  1. "use strict";
  2. module.exports = function (t, a) {
  3. var args, dummy;
  4. args = (function () {
  5. return arguments;
  6. }());
  7. dummy = { 0: 1, 1: 2 };
  8. Object.defineProperty(dummy, "length", { value: 2 });
  9. a(t(args), true, "Arguments");
  10. a(t(dummy), false, "Dummy");
  11. a(t([]), false, "Array");
  12. };