Compares whether a filter includes another filter.
Filter to compare from
Filter to compare to
const filter1 = { authors: ["a", "b"] };const filter2 = { authors: ["a", "b", "c"] };compareFilter(filter1, filter2); // trueconst filter1 = { authors: ["a", "b"] };const filter2 = { authors: ["a", "c"] };compareFilter(filter1, filter2); // false Copy
const filter1 = { authors: ["a", "b"] };const filter2 = { authors: ["a", "b", "c"] };compareFilter(filter1, filter2); // trueconst filter1 = { authors: ["a", "b"] };const filter2 = { authors: ["a", "c"] };compareFilter(filter1, filter2); // false
Compares whether a filter includes another filter.