obj.friends.filter(x=>{ return x.city=='New York'}) .sort((a, b) => a.age - b.age) .map(item => ({ name: item.name, age: item.age }));
am I missing something?
To your point abstractions often multiply and then hide the complexity, and create a facade of simplicity.
This item has no comments currently.
It looks like you have JavaScript disabled. This web app requires that JavaScript is enabled.
Please enable JavaScript to use this site (or just go read Hacker News).
am I missing something?