source:
trip-planner-front/node_modules/rxjs/_esm2015/internal/operators/toArray.js
Last change on this file was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 273 bytes |
Line | |
---|---|
1 | import { reduce } from './reduce'; |
2 | function toArrayReducer(arr, item, index) { |
3 | if (index === 0) { |
4 | return [item]; |
5 | } |
6 | arr.push(item); |
7 | return arr; |
8 | } |
9 | export function toArray() { |
10 | return reduce(toArrayReducer, []); |
11 | } |
12 | //# sourceMappingURL=toArray.js.map |
Note:
See TracBrowser
for help on using the repository browser.