Difference between revisions of "Array.some()"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "* << Z3 Home * Z3 Language Documentation * Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member F...")
 
Line 9: Line 9:
  
 
[[https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some| Array.some ]] - in Mozilla Foundation Website.
 
[[https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some| Array.some ]] - in Mozilla Foundation Website.
 +
 +
 +
[12,56,18,72,4].some(x =>x=EVEN)
 +
 +
true
 +
 +
[2,5,8,1,4].some(x => x > 10)
 +
 +
false
 +
 +
==See Also==
 +
[[Array.

Revision as of 02:23, 27 April 2020


Array.some(callback[, thisArg])

The some() method tests whether some element in the array passes the test implemented by the provided function.

[Array.some ] - in Mozilla Foundation Website.


[12,56,18,72,4].some(x =>x=EVEN)

true

[2,5,8,1,4].some(x => x > 10)

false

See Also

[[Array.