Front end of the Slack clone application.

shim.js 482B

123456789101112131415161718
  1. "use strict";
  2. var SubArray = require("../../../../array/_sub-array-dummy-safe");
  3. module.exports = function (t, a) {
  4. var arr, x = {}, subArr, result;
  5. arr = ["foo", undefined, 0, "2d", false, x, null];
  6. a.deep(t.call(arr, 2, 4), [0, "2d"], "Plain array: result");
  7. subArr = new SubArray("foo", undefined, 0, "2d", false, x, null);
  8. result = t.call(subArr, 2, 4);
  9. a(result instanceof SubArray, true, "Instance of subclass");
  10. a.deep(result, [0, "2d"], "Subclass: result");
  11. };