Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Break From Map in javascript

var myArray = [22,34,5,67,99,0];
var hasValueLessThanTen = myArray.some(function (val) { 
  return val < 10;
  console.log(val)
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Break #From #Map #javascript
ADD COMMENT
Topic
Name
7+7 =