Check if an object is contained within another one.
$ npm install is-subset
- Import the module:
;// …or:var isSubset = ;
- These are true:
…and these are false:
See the specs for more info.
Check if an object is contained within another object.
- all enumerable keys of subset are also enumerable in superset, and
- every value assigned to an enumerable key of subset strictly equals the value assigned to the same key of superset – or is a subset of it.