mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-13 22:15:25 +00:00
update
This commit is contained in:
12
node_modules/rxjs/_esm2015/operators/toArray.js
generated
vendored
Normal file
12
node_modules/rxjs/_esm2015/operators/toArray.js
generated
vendored
Normal file
@ -0,0 +1,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
|
Reference in New Issue
Block a user