Front end of the Slack clone application.

to-array.js 455B

12345678910111213141516171819202122232425262728
  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(
  7. t(
  8. (function () {
  9. return arguments;
  10. })(3, o, "raz")
  11. ),
  12. [3, o, "raz"],
  13. "Arguments"
  14. );
  15. a.deep(
  16. t(
  17. (function () {
  18. return arguments;
  19. })(3)
  20. ),
  21. [3],
  22. "Arguments with one numeric value"
  23. );
  24. a.deep(t({ 0: "raz", 1: "dwa", length: 2 }), ["raz", "dwa"], "Other");
  25. };