项目原始demo,不改动
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。
 
 
 
 

12 行
273 B

  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