source: trip-planner-front/node_modules/rxjs/internal/operators/toArray.js@ 571e0df

Last change on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 380 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var reduce_1 = require("./reduce");
4function toArrayReducer(arr, item, index) {
5 if (index === 0) {
6 return [item];
7 }
8 arr.push(item);
9 return arr;
10}
11function toArray() {
12 return reduce_1.reduce(toArrayReducer, []);
13}
14exports.toArray = toArray;
15//# sourceMappingURL=toArray.js.map
Note: See TracBrowser for help on using the repository browser.