You cannot pass multiple properties to the same filterBy , but you can filterBy in the same array 2 times, i.e. filterBy chaining calls, if that makes sense.
See the following answer I recently gave ( here ) for a working demonstration of what I'm talking about
So, in short, if you have an arr array and you want to filter it using the country and name properties, for example:
arr.filterBy('country', countryName).filterBy('name', 'Josh')
You can also just use the filter method (unlike filterBy ) and filter everything as you would like.
source share