source: trip-planner-front/node_modules/rxjs/_esm2015/internal/operators/toArray.js@ 6a3a178

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

initial commit

  • Property mode set to 100644
File size: 273 bytes
Line 
1import { reduce } from './reduce';
2function toArrayReducer(arr, item, index) {
3 if (index === 0) {
4 return [item];
5 }
6 arr.push(item);
7 return arr;
8}
9export function toArray() {
10 return reduce(toArrayReducer, []);
11}
12//# sourceMappingURL=toArray.js.map
Note: See TracBrowser for help on using the repository browser.