一般有foreach,every,filter,map,some,还有es6新加的 reduce / reduceRight 和 find / findIndex 对低版本的浏览器的兼容不太好
1.
var arr = [1, 2, 3]; arr.forEach(function (element, index, array) { console.log(element, index, array) }) //output 1 0 [1, 2, 3] 2 1 [1, 2, 3] 3 2 [1, 2, 3]