# asobj

> Object utility

Latest version **3.0.1** (published 2019-01-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install asobj
pnpm add asobj
yarn add asobj
bun add asobj
```

## 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 | 3.0.1 |
| Published | 2019-01-29 |
| First published | 2016-08-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 1 |
| Unpacked size | 44.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Taka Okunishi |
| Maintainers | okunishinishi |
| Keywords | object |

## Links

- npm: https://www.npmjs.com/package/asobj
- Repository: https://github.com/a-labo/asobj
- Homepage: https://github.com/a-labo/asobj#readme
- Issues: https://github.com/a-labo/asobj/issues
- npm.io page: https://npm.io/package/asobj

## Dependencies (1)

- [deep-equal](https://npm.io/package/deep-equal.md) ^1.0.1

## Recent versions

- 3.0.1 (latest) — 2019-01-29
- 3.0.0 — 2018-08-09
- 2.1.4 — 2018-06-26
- 2.1.3 — 2018-06-26
- 2.1.2 — 2018-06-21
- 2.1.1 — 2018-06-16
- 2.1.0 — 2018-03-04
- 2.0.10 — 2018-01-22
- 2.0.9 — 2018-01-21
- 2.0.8 — 2018-01-19
- 2.0.5 — 2018-01-19
- 2.0.4 — 2018-01-19
- 2.0.3 — 2018-01-19
- 2.0.2 — 2017-10-26
- 2.0.1 — 2017-08-27
- … 9 more at https://npm.io/package/asobj/versions

## README

asobj
==========

<!---
This file is generated by ape-tmpl. Do not update manually.
--->

<!-- Badge Start -->
<a name="badges"></a>

[![Build Status][bd_travis_shield_url]][bd_travis_url]
[![Code Climate][bd_codeclimate_shield_url]][bd_codeclimate_url]
[![Code Coverage][bd_codeclimate_coverage_shield_url]][bd_codeclimate_url]
[![npm Version][bd_npm_shield_url]][bd_npm_url]
[![JS Standard][bd_standard_shield_url]][bd_standard_url]

[bd_repo_url]: https://github.com/a-labo/asobj
[bd_travis_url]: http://travis-ci.org/a-labo/asobj
[bd_travis_shield_url]: http://img.shields.io/travis/a-labo/asobj.svg?style=flat
[bd_travis_com_url]: http://travis-ci.com/a-labo/asobj
[bd_travis_com_shield_url]: https://api.travis-ci.com/a-labo/asobj.svg?token=
[bd_license_url]: https://github.com/a-labo/asobj/blob/master/LICENSE
[bd_codeclimate_url]: http://codeclimate.com/github/a-labo/asobj
[bd_codeclimate_shield_url]: http://img.shields.io/codeclimate/github/a-labo/asobj.svg?style=flat
[bd_codeclimate_coverage_shield_url]: http://img.shields.io/codeclimate/coverage/github/a-labo/asobj.svg?style=flat
[bd_gemnasium_url]: https://gemnasium.com/a-labo/asobj
[bd_gemnasium_shield_url]: https://gemnasium.com/a-labo/asobj.svg
[bd_npm_url]: http://www.npmjs.org/package/asobj
[bd_npm_shield_url]: http://img.shields.io/npm/v/asobj.svg?style=flat
[bd_standard_url]: http://standardjs.com/
[bd_standard_shield_url]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg

<!-- Badge End -->


<!-- Description Start -->
<a name="description"></a>

Object utility

<!-- Description End -->


<!-- Overview Start -->
<a name="overview"></a>



<!-- Overview End -->


<!-- Sections Start -->
<a name="sections"></a>

<!-- Section from "doc/guides/01.Installation.md.hbs" Start -->

<a name="section-doc-guides-01-installation-md"></a>

Installation
-----

```bash
$ npm install asobj --save
```


<!-- Section from "doc/guides/01.Installation.md.hbs" End -->

<!-- Section from "doc/guides/02.Usage.md.hbs" Start -->

<a name="section-doc-guides-02-usage-md"></a>

Usage
---------

```javascript
'use strict'

const { clone } = require('asobj')

{
  let obj = clone({
    foo: 'bar',
    baz: 'quz'
  }, {
    without: 'baz'
  })
  console.log(obj) // -> { foo: 'bar' }
}

```


<!-- Section from "doc/guides/02.Usage.md.hbs" End -->

<!-- Section from "doc/guides/03.Functions.md.hbs" Start -->

<a name="section-doc-guides-03-functions-md"></a>

Functions
---------

Available functions

| Signature | Description |
| ---- | ----------- |
| `.assign() -> Object` | Assign object |
| `.cleanup(values, options, options.delNull, options.delEmptyString) -> Object` | Delete undefined properties. |
| `.clone(src, options, options.without) -> Object` | Clone a object |
| `.deepEqual(obj1, obj2) -> boolean` | Compare object deeply |
| `.dig(src, keys) -> *` | Dig object props |
| `.keyFor(, ) -> string` | Get key for value |
| `.retrieve(obj, name) -> *` | Retrieve attribute value from object |
| `.shallowEqual(obj1, obj2) -> boolean` | Performs equality by iterating through keys on an object and returning false |


<!-- Section from "doc/guides/03.Functions.md.hbs" End -->


<!-- Sections Start -->


<!-- LICENSE Start -->
<a name="license"></a>

License
-------
This software is released under the [MIT License](https://github.com/a-labo/asobj/blob/master/LICENSE).

<!-- LICENSE End -->


<!-- Links Start -->
<a name="links"></a>

Links
------

+ [a-labo][a_labo_url]

[a_labo_url]: https://github.com/a-labo

<!-- Links End -->

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