to-array.js 409 B

1234567891011
  1. "use strict";
  2. module.exports = function (t, a) {
  3. var o = [1, 2, 3];
  4. a(t(o), o, "Array");
  5. a.deep(t("12r3v"), ["1", "2", "r", "3", "v"], "String");
  6. a.deep(t((function () { return arguments; })(3, o, "raz")), [3, o, "raz"], "Arguments");
  7. a.deep(t((function () { return arguments; })(3)), [3], "Arguments with one numeric value");
  8. a.deep(t({ 0: "raz", 1: "dwa", length: 2 }), ["raz", "dwa"], "Other");
  9. };