Front end of the Slack clone application.

1234567891011121314
  1. "use strict";
  2. var reduce_1 = require('./reduce');
  3. function toArrayReducer(arr, item, index) {
  4. if (index === 0) {
  5. return [item];
  6. }
  7. arr.push(item);
  8. return arr;
  9. }
  10. function toArray() {
  11. return reduce_1.reduce(toArrayReducer, []);
  12. }
  13. exports.toArray = toArray;
  14. //# sourceMappingURL=toArray.js.map