by andyjohnson0 · 10y ago · 0 comments
object.listOfItems .reduce((item) => item.type === 'car') .map((item) => item.name));
This is way more powerful than xpath.