Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js some array

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: #js #array
ADD COMMENT
Topic
Name
6+4 =