es6/operators/toArray.js
import { reduce } from './reduce';
function toArrayReducer(arr, item, index) {
arr.push(item);
return arr;
}
export function toArray() {
return reduce(toArrayReducer, []);
}
//# sourceMappingURL=toArray.js.map
import { reduce } from './reduce';
function toArrayReducer(arr, item, index) {
arr.push(item);
return arr;
}
export function toArray() {
return reduce(toArrayReducer, []);
}
//# sourceMappingURL=toArray.js.map