is-array-like.js 418 B

1234567891011121314
  1. 'use strict';
  2. module.exports = function (t, a) {
  3. a(t([]), true, "Array");
  4. a(t(""), true, "String");
  5. a(t((function () { return arguments; }())), true, "Arguments");
  6. a(t({ length: 0 }), true, "List object");
  7. a(t(function () {}), false, "Function");
  8. a(t({}), false, "Plain object");
  9. a(t(/raz/), false, "Regexp");
  10. a(t(), false, "No argument");
  11. a(t(null), false, "Null");
  12. a(t(undefined), false, "Undefined");
  13. };