jPaq Docs - Array.prototype.every()

Quick Stats

Target Platforms:  PC (JScript) and the web (JavaScript)
Download Count:  759


Tests whether all elements in the array pass the test implemented by the provided function.


  1. fnCallback => Function
    The function that will test all of the elements in the array. The first parameter passed will be the element to be tested. The second will be the index of the element. The third will be this array. Something that evaulates to true must be returned in order to test the next element.
  2. [objThis] => Object
    Optional. The object that is referred to by the "this" keyword within fnCallback.


Returns false if fnCallback returns a value that evaluates to false. Otherwise, true is returned.