filterBy (key, value) Array
public
Returns an array with just the items with the matched property. You can pass an optional second argument with the target value. Otherwise this will match any property that evaluates to true
.
Parameters:
-
key
String
- the property to test
-
value
[*]
- optional value to test against.
Returns:
-
Array
- filtered array
Please login to continue.