[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]objects/2023-06-15 18:18 -  
[DIR]dist/2023-06-15 18:18 -  
[DIR]arrays/2023-06-15 18:18 -  
[   ]package.json2023-06-15 18:21 2.9K 
[   ]LICENSE1985-10-26 08:15 1.1K 
[TXT]README.md1985-10-26 08:15 1.1Kd7c1522 post receive test [كارل مبارك]
<a href="https://codeship.com/projects/168228" target="_blank"><img src="https://img.shields.io/codeship/53d0b900-42a9-0134-35d6-5a9bff506e9c/master.svg" alt="Build Status"></a>
<a href="https://npmjs.org/package/shallow-equal" target="_blank"><img src="https://img.shields.io/npm/v/shallow-equal.svg" alt="NPM Version"></a>

## Description

If you know you have two arrays or two objects in hand, and you want to know if they are shallowly equal or not, this library is for you.

## Features

- Super light
- No dependencies
- Thoroughly tested

## Installation

```shell
npm install shallow-equal --save
```

## Usage

```js
import { shallowEqualArrays } from "shallow-equal";

shallowEqualArrays([1, 2, 3], [1, 2, 3]); // => true
shallowEqualArrays([{ a: 5 }], [{ a: 5 }]); // => false
```

```js
import { shallowEqualObjects } from "shallow-equal";

shallowEqualObjects({ a: 5, b: "abc" }, { a: 5, b: "abc" }); // => true
shallowEqualObjects({ a: 5, b: {} }, { a: 5, b: {} }); // => false
```

## License

<a href="http://moroshko.mit-license.org" target="_blank">MIT</a>