object-contains

0.1.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i object-contains

    Weekly Downloads

    5

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • krambuhl