Represents a logical selector used to filter elements in an array. It supports two modes:
1. Object comparison
Useful when workin with arrays of objects. Each property in the selector is compared against the corresponding property in every element of the array. If all values match, the element is included in the result.
Nested properties can be accessed using dot notation.
Alternatively, a function can be provided. It will be called for each element in the array, and the element will be included in the result if the function returns true.
Represents a logical selector used to filter elements in an array. It supports two modes:
1. Object comparison
Useful when workin with arrays of objects. Each property in the selector is compared against the corresponding property in every element of the array. If all values match, the element is included in the result.
Nested properties can be accessed using dot notation.
2. Predicate function
Alternatively, a function can be provided. It will be called for each element in the array, and the element will be included in the result if the function returns
true
.