forEach
map
filter
var arr = [1,2,3,4,5,6,7]; var newArr = arr.filter(function(item, index, old) { return index % 3 === 0 || item > 3; }); console.log(newArr, arr);