0268e5f2ac44773db9be8f4719f073e62bb2320af3f31915a412a907fdf08697ac6cf28a960ddfd66ff0ecbd7f230e9fa88c54bf90bbaaae8f1cf4a547a214 273 B

123456789101112
  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