DEV Community

Discussion on: Plucking properties from object arrays in JavaScript

Collapse
 
domhabersack profile image
Dom Habersack

Very nice. I usually use the other one because that way it’s easier to chain with other array methods: .filter() an array, .map() some values out of its elements, .sort() the result, maybe run a .reduce() over it, all in the same chain.

If that’s not the scenario, I like your solution better.