https://github.com/nattatorn-dev/strict-array-equals
♊ Shallow check two arrays for strict equality
https://github.com/nattatorn-dev/strict-array-equals
Last synced: about 2 months ago
JSON representation
♊ Shallow check two arrays for strict equality
- Host: GitHub
- URL: https://github.com/nattatorn-dev/strict-array-equals
- Owner: nattatorn-dev
- Created: 2017-10-14T16:06:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-15T14:06:22.000Z (over 7 years ago)
- Last Synced: 2025-03-29T05:38:08.201Z (about 2 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/strict-array-equals
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# strict-array-equals
[](https://www.npmjs.com/package/strict-array-equals) [](https://github.com/sindresorhus/xo) [](https://travis-ci.org/jacobwarduk/strict-array-equals) [](https://codecov.io/gh/jacobwarduk/strict-array-equals)
Shallow check two arrays for strict equality
**Installation**
```
npm install --save strict-array-equals
```**Usage**
```javascript
const strictArrayEquals = require('strict-array-equals');strictArrayEquals(['a', 23], ['a', 23]); // true
strictArrayEquals(['a', 23], [23, 'a']); // false
strictArrayEquals(['a', 23], [42]); // false
```