forEach(): No return value, only the specified function is called for each array item ( callbackfn )
every(): Returns a Boolean value ( true or false ) that determines whether each array item conforms to the condition of the specified function, conforms to true , and vice versa.false
some(): Returns a Boolean value ( true or false) that determines whether each array item conforms to the condition of the specified function, and returns if any of the items are returned as truetrue
filter(): Each array item invokes the specified function, and the condition is true returned to a new array
map(): Each array item invokes the specified function, returning the result of each function call to form a new array
In this five array iteration method, where forEach() , every() and some() methods do not generate a new array, filter() and the map() method will generate a new array (qualifying). And these methods will invoke the specified function callbackfn .
Original: http://www.w3cplus.com/javascript/array-part-7.html
Methods for traversing array elements