has-any-deep

v0.2.0
Return true if `key` exists deeply on the given object.
has value key property prop keys deep nested object and 2 more...

has-any-deep NPM version Build Status

Return true if key exists deeply on the given object.

Install with npm

npm i has-any-deep --save

Running tests

Install dev dependencies.

npm i -d && npm test

Usage

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

hasAnyDeep({a: 'b'}, ['a']);
//=> 'true'

hasAnyDeep({a: 'b', b: {c: 'c'}}, ['c', 'd']);
//=> 'true'

Other libs

Other javascript/node.js utils that I maintain:

Author

Jon Schlinkert

License

Copyright (c) 2015 Jon Schlinkert
Released under the MIT license


This file was generated by verb-cli on March 24, 2015.

Metadata

  • Unknown
  • >=0.10.0
  • Jon Schlinkert
  • released 9/22/2014

Downloads

Maintainers