Returns true if the given object has all of the specified keys.
Install with npm
$ npm i has-keys --save
var hasKeys = require('has-keys');
var obj = {a: 'a', b: 'b', c: 'c'};
hasKeys(obj, 'a');
//=> true
hasKeys(obj, ['a', 'b']);
//=> true
hasKeys(obj, ['a', 'b', 'c']);
//=> true
hasKeys(obj, ['a', 'b', 'c', 'd']);
//=> false
a.b.c) to get a nested value from an object.key exists deeply on the given object.Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on June 02, 2015.