# es6-project **Repository Path**: lcbzm/es6-project ## Basic Information - **Project Name**: es6-project - **Description**: es6实际开发全实践 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-05-10 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 一、Array #### 1.循环数组,给数组每一项都新增字段(map Object.assign.forEach) - 参考[array/index1.js](https://gitee.com/lcbzm/es6-project/blob/master/array/index1.js) - 参考[array/index1-1.js](https://gitee.com/lcbzm/es6-project/blob/master/array/index1-1.js) #### 2.循环数组,必须每一项都符合条件,全部符合则返回true,有一个不符合则返回false(every) - 参考[array/index2.js](https://gitee.com/lcbzm/es6-project/blob/master/array/index2.js) #### 3.循环数组,从数组对象里找到符合条件的对象,只有一条,找不到则返回undefined(find) - 参考[array/index3.js](https://gitee.com/lcbzm/es6-project/blob/master/array/index3.js) #### 4.循环数组,从数组对象里找到符合条件的对象,只有一条该对象的索引,找不到则返回-1(findIndex) - 参考[array/index4.js](https://gitee.com/lcbzm/es6-project/blob/master/array/index4.js) #### 5.循环数组,知道索引,根据索引从数组对象里找到自己要的对象,并且修改该对象的字段 - 参考[array/index5.js](https://gitee.com/lcbzm/es6-project/blob/master/array/index5.js) #### 6.循环数组,筛选自己想要的字段组成新数组对象(map) - 参考[array/index6.js](https://gitee.com/lcbzm/es6-project/blob/master/array/index6.js) #### 7.循环数组,从数组对象里找到所有符合条件的对象组成新数组,可以有多条,找不到则返回空数组(filter) - 参考[array/index7.js](https://gitee.com/lcbzm/es6-project/blob/master/array/index7.js) #### 8.循环数组,从数组中的对象取出特定字段并生成新的数组 - 参考[array/index8.js](https://gitee.com/lcbzm/es6-project/blob/master/array/index8.js) #### 9.循环数组,修改数组对象中的属性值key返回新数组对象(map) - 参考[array/index9.js](https://gitee.com/lcbzm/es6-project/blob/master/array/index9.js) #### 10.循环数组,有一项则返回true,否则返回false(some) - 参考[array/index10.js](https://gitee.com/lcbzm/es6-project/blob/master/array/index10.js)