Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

toArray.js 325B

12345678910111213
  1. /** PURE_IMPORTS_START _reduce PURE_IMPORTS_END */
  2. import { reduce } from './reduce';
  3. function toArrayReducer(arr, item, index) {
  4. if (index === 0) {
  5. return [item];
  6. }
  7. arr.push(item);
  8. return arr;
  9. }
  10. export function toArray() {
  11. return reduce(toArrayReducer, []);
  12. }
  13. //# sourceMappingURL=toArray.js.map