# @cuties/object

> Cutie extension for working with Object in JavaScript.

Latest version **1.1.6** (published 2019-06-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cuties/object
pnpm add @cuties/object
yarn add @cuties/object
bun add @cuties/object
```

## 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 | 1.1.6 |
| Published | 2019-06-22 |
| First published | 2018-08-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 28.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | guseyn |
| Maintainers | guseyn |
| Keywords | cutie, object |

## Links

- npm: https://www.npmjs.com/package/@cuties/object
- Repository: https://github.com/Guseyn/cutie-object
- Homepage: https://github.com/Guseyn/cutie-object#readme
- Issues: https://github.com/Guseyn/cutie-object/issues
- npm.io page: https://npm.io/package/@cuties/object

## Dependencies (5)

- [@cuties/is](https://npm.io/package/@cuties/is.md) ^1.1.2
- [@cuties/wall](https://npm.io/package/@cuties/wall.md) ^1.1.2
- [@cuties/cutie](https://npm.io/package/@cuties/cutie.md) ^1.7.5
- [test-executor](https://npm.io/package/test-executor.md) ^1.2.4
- [@cuties/assert](https://npm.io/package/@cuties/assert.md) ^1.2.2

## Recent versions

- 1.1.6 (latest) — 2019-06-22
- 1.1.5 — 2019-05-10
- 1.1.4 — 2019-02-25
- 1.1.3 — 2019-02-24
- 1.1.2 — 2019-02-24
- 1.1.1 — 2019-02-24
- 1.1.0 — 2019-02-21
- 1.0.10 — 2019-02-17
- 1.0.9 — 2019-02-17
- 1.0.8 — 2019-02-17
- 1.0.7 — 2019-02-17
- 1.0.6 — 2019-02-17
- 1.0.5 — 2018-10-04
- 1.0.4 — 2018-09-22
- 1.0.3 — 2018-08-29

## README

# cutie-object

[![NPM Version](https://img.shields.io/npm/v/@cuties/object.svg)](https://npmjs.org/package/@cuties/object)
[![Build Status](https://travis-ci.org/Guseyn/cutie-object.svg?branch=master)](https://travis-ci.org/Guseyn/cutie-object)
[![codecov](https://codecov.io/gh/Guseyn/cutie-object/branch/master/graph/badge.svg)](https://codecov.io/gh/Guseyn/cutie-object)

[Cutie](https://github.com/Guseyn/cutie) extension for work with </b>Object</b> in JavaScript. It's based on the [Async Tree Pattern](https://github.com/Guseyn/async-tree-patern/blob/master/Async_Tree_Patern.pdf).


## Examples

You can find examples of using this library in the [test directory](https://github.com/Guseyn/cutie-object/tree/master/test).

## Install

`npm install @cuties/object`

## Run test

`npm test`

## Run build

`npm run build`

## Usage

```js
const {
  // Needed async objects here from the table below
} = require('@cuties/object');
```
For more information about parameters in the async objects visit [MDN docs for Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object).

| Async Object | Async/sync call | Parameters(default value/description) | Representation result |
| ------------- | ----------------| ---------- | --------------------- |
| `AreObjectsEqual` | `Object.is` | `obj1, obj2` | `boolean` |
| `AssignedObject` | `Object.assign` | `target, ...sources` | `object` |
| `CreatedObject` | `Object.create` | `proto, propertiesObject` | `object` |
| `FrozenObject` | `Object.freeze` | `obj` | `obj` |
| `HasOwnProperty` | `obj.hasOwnProperty` | `obj, prop` | `boolean` |
| `IsExtensible` | `Object.isExtensible` | `obj` | `boolean` |
| `IsFrozen` | `Object.isFrozen` | `obj` | `boolean` |
| `IsPrototypeEnumerable` | `obj.propertyIsEnumerable` | `obj, prop` | `boolean` |
| `IsPrototypeOf` | `prototypeObj.isPrototypeOf` | `prototypeObj, obj` | `boolean` |
| `IsSealed` | `Object.isSealed` | `obj` | `boolean` |
| `Keys` | `Object.keys` | `obj` | `string[]` |
| `LocaleStringFrom` | `obj.toLocaleString` | `obj` | `string` |
| `NotExtensibleObject` | `Object.preventExtensions` | `obj` | `obj` |
| `ObjectWithDefinedProperties` | `Object.defineProperties` | `obj, props` | `obj` |
| `ObjectWithDefinedProperty` | `Object.defineProperty` | `obj, prop, descriptor` | `obj` |
| `ObjectWithPrototypeOf` | `Object.setPrototypeOf` | `obj, prototype` | `obj` |
| `ObjectWithValue` | `Object.assign({}, obj)[key] = value` | `obj, key, value` | `obj` |
| `OwnPropertyDescriptor` | `Object.getOwnPropertyDescriptor` | `obj, prop` | `obj` |
| `OwnPropertyNames` | `Object.getOwnPropertyNames` | `obj, prop` | `string[]` |
| `OwnPropertySymbols` | `Object.getOwnPropertySymbols` | `obj` | `string[]` |
| `ProcessedObject` | [processedObject](https://github.com/Guseyn/cutie-object/blob/master/src/Keys.js) | `obj, iterator, ...additionalArgs` | `obj` |
| `PrototypeOf` | `Object.getPrototypeOf` | `obj` | `prototype` |
| `SealedObject` | `Object.seal` | `obj` | `obj` |
| `StringFrom` | `obj.toString` | `obj` | `string` |
| `ObjectWithValue` | `obj[key] = value` | `obj, key, value` | `obj` |
| `Value` | `obj[key]` | `obj, key` | `value` |
| `ValueOf` | `obj.valueOf` | `obj` | `value` |
| `Values` | `Object.values` | `obj` | `string[]` |

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