deep-has

1.0.0 • Public • Published

Deep has Build Status

Find all instances of a specified key within a given object.

usage

With code such as:

var has = require('deep-has');

var obj = {
    foo: {
        bar: '123'
    },
    bar: false
};

var x = has(obj, 'bar');

x would be:

[
    { 'bar': false },
    { 'foo.bar': '123' }
]

The tests also provide further insight.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    39
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    39
  • 0.0.1
    1

Package Sidebar

Install

npm i deep-has

Weekly Downloads

37

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mattyod