jPaq Docs - Array.prototype.some()

Quick Stats

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

Summary

Tests whether some element in the array passes the test implemented by the provided function.

Parameters

  1. fnCallback => Function
    Function to test for each element.
  2. [objThis] => Object
    Optional. The object that is referred to by the "this" keyword within fnCallback.

Returns

Boolean
Returns true if at least one of the elements passes the test. Otherwise, false is returned.