UNPKG

917 BMarkdownView Raw
1# has-any [![NPM version](https://badge.fury.io/js/has-any.svg)](http://badge.fury.io/js/has-any) [![Build Status](https://travis-ci.org/jonschlinkert/has-any.svg)](https://travis-ci.org/jonschlinkert/has-any)
2
3> Returns true if an object has any of the specified keys.
4
5## Install with [npm](npmjs.org)
6
7```bash
8npm i has-any --save
9```
10
11## Running tests
12Install dev dependencies.
13
14```bash
15npm i -d && npm test
16```
17
18## Usage
19
20```js
21var hasAny = require('has-any');
22
23hasAny({a: 'b', c: 'd'}}, 'c');
24//=> true
25
26hasAny({a: {b: {c: 'c'}}, foo: 'bar'}, ['foo', 'quux']);
27//=> true
28```
29
30## Author
31
32**Jon Schlinkert**
33
34+ [github/jonschlinkert](https://github.com/jonschlinkert)
35+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
36
37## License
38Copyright (c) 2015 Jon Schlinkert
39Released under the MIT license
40
41***
42
43_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 24, 2015._
\No newline at end of file