数组常用方法 push pop unshift shift find(第一个通过的元素) findIndex(第一个通过的索引下标) map foreach filter indexof join splice slice(截取)
from(将有length转换为数组) array(检测是不是数组)返回布尔值 reduce(第一个参数为上一次相加的过后的和,第二个为每一项)最终返回的是相加过后的值 soft数组排序 reverse数组顺序反转
数组常用方法 push pop unshift shift find(第一个通过的元素) findIndex(第一个通过的索引下标) map foreach filter indexof join splice slice(截取)
from(将有length转换为数组) array(检测是不是数组)返回布尔值 reduce(第一个参数为上一次相加的过后的和,第二个为每一项)最终返回的是相加过后的值 soft数组排序 reverse数组顺序反转