can.Object.subsets

  • function
 

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

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

Parameters

  1. checkSet {Object}

  2. sets {Object}

  3. compares {Object}

Example

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