4 ms·
you can use chained map/reduce. object.listOfItems .reduce((item) => item.type === 'car') .map((item) => item.name)); This is way more powerful than xpa
by Chyzwar 10y ago
you can use chained map/reduce.
object.listOfItems
.reduce((item) => item.type === 'car')
.map((item) => item.name));
This is way more powerful than xpath.