Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript filter array

let bigCities = cities.filter(city => city.population > 3000000);
console.log(bigCities);Code language: JavaScript (javascript)
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #javascript #filter #array
ADD COMMENT
Topic
Name
2+8 =