UNPKG
@acutmore/rxjs
Version:
latest (1.6.0)
1.6.0
1.4.0
1.3.0
1.2.0
1.1.0
1.0.0
Reactive Extensions for modern JavaScript
github.com/youviewtv/rxjs-5/
@acutmore/rxjs
/
dist
/
package
/
_esm5
/
internal
/
operators
/
toArray.js
12 lines
•
273 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{ reduce }
from
'./reduce'
;
function
toArrayReducer
(
arr, item, index
) {
if
(index ===
0
) {
return
[item]; } arr.
push
(item);
return
arr; }
export
function
toArray
(
) {
return
reduce
(toArrayReducer, []); }
//# sourceMappingURL=toArray.js.map