can.Object.subset

  • function
 

Compares if subset is a subset of set. Returns true if an object is a set of another set

can.Object.subset({}, {foo: "bar"} ) //-> true

can.Object.subset(subset, set, compares)

Parameters

  1. subset {Object}

  2. set {Object}

  3. compares {Object}

Returns

{Boolean}

Whether or not subset is a subset of set