filter advantages in js

Solutions on MaxInterview for filter advantages in js by the best coders in the world

showing results for - "filter advantages in js"
Maire
29 May 2016
1let cities = [
2    {name: 'Los Angeles', population: 3792621},
3    {name: 'New York', population: 8175133},
4    {name: 'Chicago', population: 2695598},
5    {name: 'Houston', population: 2099451},
6    {name: 'Philadelphia', population: 1526006}
7];
Silvana
28 Jan 2019
1let bigCities = cities.filter(function (e) {
2    return e.population > 3000000;
3});
4console.log(bigCities);