# has-key-deep

> Determines if an object has a deeply-nested key

Latest version **2.5.0** (published 2019-10-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install has-key-deep
pnpm add has-key-deep
yarn add has-key-deep
bun add has-key-deep
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.5.0 |
| Published | 2019-10-18 |
| First published | 2015-01-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ryan Aghdam |
| Maintainers | ryanaghdam |

## Links

- npm: https://www.npmjs.com/package/has-key-deep
- Repository: https://github.com/ryanaghdam/has-key-deep
- Homepage: https://github.com/ryanaghdam/has-key-deep#readme
- Issues: https://github.com/ryanaghdam/has-key-deep/issues
- npm.io page: https://npm.io/package/has-key-deep

## Recent versions

- 2.5.0 (latest) — 2019-10-18
- 2.4.0 — 2019-10-15
- 2.3.1 — 2019-10-15
- 2.3.0 — 2019-10-15
- 2.2.0 — 2017-06-08
- 2.1.4 — 2016-06-23
- 2.1.3 — 2016-06-23
- 2.1.1 — 2016-06-21
- 2.1.0 — 2016-06-20
- 2.0.0 — 2016-03-14
- 1.0.1 — 2016-03-03
- 1.0.0 — 2016-03-02
- 0.0.3 — 2015-02-01
- 0.0.2 — 2015-01-22
- 0.0.1 — 2015-01-22

## README

hasKeyDeep
==========

[![Build Status](https://travis-ci.org/ryanaghdam/has-key-deep.svg?branch=master)](https://travis-ci.org/ryanaghdam/has-key-deep)

Deep-search objects for keys.  Keys can be searched by providing an array of
keys, or using a dot-notiation.

Examples
--------

Complete application

```javascript
hasKeyDeep({ a: { b: { c: 1 } } }, 'a.b.c') => true
hasKeyDeep({ a: { b: { c: 1 } } }, ['a', 'b', 'c']) => true
hasKeyDeep({ a: { b: { c: 1 } } }, 'a.b.c.d') => true
hasKeyDeep({ a: { b: { c: 1 } } }, 'a.c') => false
hasKeyDeep({}, 'a') => false
```


Partial application


```javascript
var hasABC = hasKeyDeep('a.b.c');
hasAbc({a: { b: { c: 1 } } }) => true
hasAbc({a: 1 }) => false
```

---
_Source: https://npm.io/package/has-key-deep · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
