Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js some

movies.some(movie => movie.year > 2015)
// Say true if in movie.year only one (or more) items are greater than 2015
// Say false if no items have the requirement (like and operator)
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js
ADD COMMENT
Topic
Name
8+1 =