Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript some

const age= [2,7,12,17,21];

age.some(function(person){
return person > 18;}); //true

//es6
const age= [2,7,12,17,21];
age.some((person)=> person>18); //true
 
PREVIOUS NEXT
Tagged: #javascript
ADD COMMENT
Topic
Name
9+3 =