You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So it's possible to filter by multiple values of the same key:
_.matches([{name: 'Bob'},{name: 'Alice'}])//matches both {name: 'Bob'} and {name: 'Alice'}//and this syntax would be nice to have too :)_.matches({name: 'Bob'},{name: 'Alice'})//matches both {name: 'Bob'} and {name: 'Alice'}
The text was updated successfully, but these errors were encountered:
This looks good too, but I wanted to use _.where in the same manner:
_.where(person,[{name: 'Bob'},{name: 'Alice'}])
returns array with Bob and Alice
and the new syntax is backward compatible as far as I can see, it just adds the special handling case if argument is an array
So it's possible to filter by multiple values of the same key:
The text was updated successfully, but these errors were encountered: