# get-object-value

> Get Object Value

Latest version **0.8.1** (published 2025-05-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-object-value
pnpm add get-object-value
yarn add get-object-value
bun add get-object-value
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.8.1 |
| Published | 2025-05-17 |
| First published | 2016-11-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 23.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Hill |
| Maintainers | hillliu |

## Links

- npm: https://www.npmjs.com/package/get-object-value
- Repository: https://github.com/react-atomic/react-atomic-organism
- Homepage: https://github.com/react-atomic/react-atomic-organism/tree/main/packages/lib/get-object-value
- Issues: https://github.com/react-atomic/react-atomic-organism/issues
- npm.io page: https://npm.io/package/get-object-value

## Dependencies (3)

- [call-func](https://npm.io/package/call-func.md) *
- [reshow-runtime](https://npm.io/package/reshow-runtime.md) *
- [reshow-constant](https://npm.io/package/reshow-constant.md) *

## Recent versions

- 0.8.1 (latest) — 2025-05-17
- 0.8.0 — 2025-05-16
- 0.7.3 — 2024-07-26
- 0.7.2 — 2024-07-25
- 0.7.1 — 2024-07-25
- 0.7.0 — 2024-07-22
- 0.6.9 — 2023-10-30
- 0.6.8 — 2023-09-19
- 0.6.7 — 2023-08-14
- 0.6.6 — 2023-05-16
- 0.6.5 — 2022-10-11
- 0.6.4 — 2022-10-11
- 0.6.3 — 2022-10-04
- 0.6.2 — 2022-07-03
- 0.6.1 — 2022-07-02
- … 46 more at https://npm.io/package/get-object-value/versions

## README

Get object value with paht
===============
   * GIT
      * https://github.com/react-atomic/react-atomic-organism/tree/master/packages/lib/get-object-value 
   * NPM
      * https://npm.im/get-object-value

## Spec
```

import get from 'get-object-value';

get(object, path, defaultValue)

```
   * Arguments
      * object (Object): The object to query.
      * path (Array): The path of the property to get.
      * defaultValue ( option, Any ): The value returned for undefined resolved values.
   * Code:
      * https://github.com/react-atomic/react-atomic-organism/blob/master/packages/lib/get-object-value/src/index.js
      
## Example Usage

```

import get from 'get-object-value';

let demoObject = {
  a: {
    b: c1
  }
};

let v1 = get(demoObject, ['a','b']); // return c1

let v1 = get(demoObject, ['a','b','d'], 'c2'); // return c2

```

## Set Object Value
   * https://github.com/react-atomic/react-atomic-organism/tree/master/packages/lib/set-object-value

## Loadash
   * Doc https://lodash.com/docs/4.16.6#get

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