Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

break out of map 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 #map #javascript
ADD COMMENT
Topic
Name
3+1 =