Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Javascript array some

function isBiggerThan10(element, index, array) {
  return element > 10;
}

[2, 5, 8, 1, 4].some(isBiggerThan10);  // false
[12, 5, 8, 1, 4].some(isBiggerThan10); // true
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #Javascript #array
ADD COMMENT
Topic
Name
5+4 =