Sign in
cobalt
/
cobalt
/
e83fce97d7405b0b5e569d961aa431b1112ac6ac
/
.
/
src
/
third_party
/
devtools
/
node_modules
/
rxjs
/
_esm2015
/
internal
/
operators
/
toArray.js
blob: 98effe76e07def60497442959adcf3c553ac7187 [
file
] [
log
] [
blame
]
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