Function compareFilter

  • Compares whether a filter includes another filter.

    Parameters

    Returns boolean

    const filter1 = { authors: ["a", "b"] };
    const filter2 = { authors: ["a", "b", "c"] };
    compareFilter(filter1, filter2); // true

    const filter1 = { authors: ["a", "b"] };
    const filter2 = { authors: ["a", "c"] };
    compareFilter(filter1, filter2); // false