Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js any array member true

// Check whether some of 1,2,3 is even
[1, 2, 3].some((num) => num % 2 === 0)
// This is true
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #array #member #true
ADD COMMENT
Topic
Name
7+8 =