Difference between revisions of "Array.some()"
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...") |
|||
(One intermediate revision by the same user not shown) | |||
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.filter()|filter]] | ||
+ | |||
+ | [[Array.reduce()|reduce]] |
Latest revision as of 03:21, 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