In ECMAScript5, there are 5 iterative methods defined for the array, every (), filter (), ForEach (), map (), and some (), each of which accepts two parameters: the function to run on each item and, optionally, the scope object that runs the function-- The value that affects this. The functions passed in these methods receive three parameters: the value of the array item, the position of the item in the array, and the object itself. Depending on the method used, the return value after the function is executed may or may not affect the return value of the access.
Every ()
The Every () method is used to detect whether all elements of an array meet the specified criteria, to run the given function for each item in the array, and if an element is detected in the arrays that does not satisfy, the entire expression returns false, and the remaining elements are no longer instrumented and return true if all elements satisfy the condition.
Array of common methods