isProperSubset
Return if a query is a strict subset of another set.
queryLogic.isProperSubset(a, b)
Returns true if a is a strict subset of b. In set theory, this is
represented by A ⊂ B.
import {QueryLogic} from "can";
const queryLogic = new QueryLogic();
const criticalSubset = queryLogic.isProperSubset({filter: {type: "critical"}}, {});
console.log( criticalSubset ); //-> true
const emptySet = queryLogic.isProperSubset({}, {});
console.log( emptySet ); //-> false
Returns
{Boolean}:
true if a is a subset of b and not equal to b.