JavaScript数组所有API总结
方法(总30个)
查看数组原型提供的方法:
改变自身值的方法(9个)
pop
push
reverse
shift
sort
splice
unshift
copyWithin(ES6)
fill(ES6)
不会改变自身的方法(9个)
concat
join
slice
toString
toLocaleString
indexOf
lastIndexOf
includes(ES7)
toSource(非标准)
遍历方法(12个)
forEach
every
some
filter
map
reduce
reduceRight
entries(ES6)
find&findIndex(ES6)
keys(ES6)
values(ES6)
Symbol.iterator(ES6)