# object-utils-br

> utils for object

Latest version **1.0.1** (published 2023-04-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install object-utils-br
pnpm add object-utils-br
yarn add object-utils-br
bun add object-utils-br
```

## 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.0.1 |
| Published | 2023-04-07 |
| First published | 2023-04-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ricardo Santos |
| Maintainers | rick-ssa |
| Keywords | sort, date, array, compare |

## Links

- npm: https://www.npmjs.com/package/object-utils-br
- Repository: https://github.com/rick-ssa/object-utils
- Homepage: https://github.com/rick-ssa/object-utils/blob/main/README.md
- Issues: https://github.com/rick-ssa/object-utils/issues
- npm.io page: https://npm.io/package/object-utils-br

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2023-04-07
- 1.0.0 — 2023-04-07

## README

# OBJECT UTILS

## Install
```
npm install object-utils-br
```

## 1. Object comparation  

```
objectIsEqual(data1, data2, ...ingoredKeys)
```
- Description: Compare two objects.

- params:
    - data1: the first object;
    - data2: the second object;
    - ignoredKeys: list of string with keys name to be ignored on the comparation.

- return: boolean.

## 2. Array check

```
isArray(object)
```

- Description: Check if an object is an Array.

- params:
    - Object: the object to be verified.

- return: boolean.

## 3. Date check

```
isDate(object)
```

- Description: Check if an object is a date.

- params:
    - Object: the object to be verified.

- return: boolean.

## 4. Sort objects by number of keys 

```
sortObjectsByKeysLength(...objects)
```

- Description: sorted objects by number of keys.

- params:
    - ...objects: the list of objects to be sorted.

- return: an array of objects sorted by number of keys.

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