Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

filter in javascipt

const numbers = [5, 13, 7, 30, 5, 2, 19];
const bigNumbers = numbers.filter(number => number > 20);
console.log(bigNumbers);
//Output: [30]
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #filter #javascipt
ADD COMMENT
Topic
Name
4+6 =