[Vuejs]-How to filter array using lodash

1👍

Is lodash a hard requirement? With ES6 you can use the inbuilt .filter method.

const filtered = props.data.filter(item => item.isAMatch === true)

Would return an array only with items that had a property isMatch that’s true

👤Egge

Leave a comment