Currently, my search filter is only able to filter results based on the 'packageName
' field. I now have a requirement to expand this filter to also include the 'dateStart
' and 'dateFinish
' fields.
getters: {
filteredPacks: (state, getters) => (search) => {
return state.packs.filter(pack => {
return pack.packageName.toLowerCase().indexOf(search) > -1
})
}
}
I am seeking assistance on how to implement filtering results by multiple fields/criteria. Can anyone provide guidance on this matter?