Changelog
8.3.2
[{a: { b: 1}}, {a: { b: 1, c: 2}}]].filter(sift({ a: { b: 1} })) === [{a: {b: 1}]
, and [{a: 1, b: 1}, {a: 1}]].filter(sift({ a: 1 })) === [{a: 1, b: 1}, {a: 1}]
.Changelog
8.0.0
indexOf
in favor of array.findIndex(sift(query))
options
instead of select function. E.g: sift(query, { expressions: customExpressions, select: selectValue })
sift(query, array)
. You must now use array.filter(sift(query))
[{a: 1, b: 1}, {a: 1}]].filter(sift({ a: 1 })) === [{a: 1}]
Changelog
16.0.0