Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 282 Bytes

File metadata and controls

13 lines (9 loc) · 282 Bytes

object-contains

Predicate function checking if haystack object contains needle object

Useage

var contains = require('object-contains');
var obj = { can: 'help', nope: true };

contains(obj, { nope: true }); // ==> true
contains(obj, { nope: false }); // ==> false