Skip to content
Predicate function checking if haystack object contains needle object
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests
.gitignore
.jshintrc
.npmignore
LICENSE
README.md
index.js
package.json

README.md

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
You can’t perform that action at this time.