1
0

is-arguments.js 291 B

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