• function

can.Object.subsets

 

Returns the sets in 'sets' that are a subset of checkSet

can.Object.subsets({userId: 20},
[
    {userId: 20, limit: 30},
    {userId: 5},
    {}
]) //-> [{userId: 20, limit: 30}]

can.Object.subsets(checkSet, sets, compares)

Parameters

  1. checkSet {Object}

  2. sets {Object}

  3. compares {Object}