Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript array filter

var numbers = [1, 3, 6, 8, 11];

var lucky = numbers.filter(function(number) {
  return number > 7;
});

// [ 8, 11 ]
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #array #filter
ADD COMMENT
Topic
Name
5+1 =