# @util-funcs/object-get

> Deep dive into plain object and take value by key chaining.

Latest version **0.0.2** (published 2019-11-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @util-funcs/object-get
pnpm add @util-funcs/object-get
yarn add @util-funcs/object-get
bun add @util-funcs/object-get
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2019-11-09 |
| First published | 2019-11-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ahmet ATAY |
| Maintainers | atayahmet |
| Keywords | helper, object, object-get, nested-object |

## Links

- npm: https://www.npmjs.com/package/@util-funcs/object-get
- Repository: https://github.com/util-funcs/object-get
- Homepage: https://github.com/util-funcs/object-get#readme
- Issues: https://github.com/util-funcs/object-get/issues
- npm.io page: https://npm.io/package/@util-funcs/object-get

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2019-11-09
- 0.0.1 — 2019-11-09

## README

# object-get

Deep dive into plain object and take value by key chaining.

[![npm version](https://badge.fury.io/js/%40util-funcs%2Fobject-get.svg)](https://badge.fury.io/js/%40util-funcs%2Fobject-get) [![Build Status](https://travis-ci.org/util-funcs/object-get.svg?branch=master)](https://travis-ci.org/util-funcs/object-get.svg?branch=master)

## Getting Started

```ts
import get from '@util-funcs/object-get';
```

### Installing

```sh
npm i @util-funcs/object-get --save
```

or

```sh
yarn add @util-funcs/object-get
```

### Examples

```javascript
const data = {
  name: 'John',
  surname: 'Doe',
  age: 34,
  location: {
    city: 'Londra',
    country: 'UK',
  },
  orders: [
    {
      name: 'Headphone',
      price: 45.6,
      type: 'electronic',
    },
    {
      name: 'Macbook Air 13.3 inch',
      price: 45.6,
      type: 'electronic',
    },
  ],
  '#hobbies': ['travel', 'edm'],
};
```

```javascript
  get('name', data)) === 'John'

  get('location.city', data) === 'Londra'

  get('#hobbies[0]', data) === 'travel'

  get('orders[0]name', data) === 'Headphone'

  get('orders[0]name.length', data) === 9

  get('orders[0]category', data, 'uncategorized') === 'uncategorized'
```

## Run tests

```ts
npm test
```

## Built With

- [TypeScript](https://www.typescriptlang.org)

## Versioning

We use [SemVer](http://semver.org/) for versioning.

## Authors

- [**Ahmet ATAY**](https://github.com/atayahmet) - _Initial work_

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

---
_Source: https://npm.io/package/@util-funcs/object-get · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
