Returns true when keys and values in properties are contained in object
$ npm install --save o-contains
var objectContains = require('o-contains');
console.log(objectContains({name: 'radheya', age: 26}, {name: 'radheya'}));
// -> true
console.log(objectContains({name: 'radheya', age: 26}, {age: 98}));
// -> false
Arguments:
-
object
: Object -
attrs
: the attributes that to be checked
Returns: Returns true when keys and values in properties are contained in object
© 2016 vikram. MIT License