x-deep-array-equal
v0.0.1
Published
**xDeepArrayEqual** recursively compares two nested arrays for deep equality. It does so by checking whether the two input arrays are deeply equal, meaning they have the same values in the same structure
Downloads
10
Maintainers
Readme
xDeepArrayEqual recursively compares two nested arrays for deep equality. It does so by checking whether the two input arrays are deeply equal, meaning they have the same values in the same structure
Installation
To use xDeepArrayEqual, you'll need to include the provided TypeScript file in your project.
- Download the
xDeepArrayEqual.ts
file from this repository. - Add the file to your project directory.
Usage
Import the
xDeepArrayEqual
class into your TypeScript code:import { xDeepArrayEqual } from 'x-deep-array-equal' xDeepArrayEqual([1, [2, 3], 4], [1, [2, 3], 4]) // true
Import the
xDeepArrayEqual
class into your Javascript code:const { xDeepArrayEqual } = require("x-deep-array-equal") xDeepArrayEqual([1, [2, 3], 4], [1, [2, 4], 4]) // false
Support Me
If you find this project helpful or want to show your appreciation, you can support me by buying me a coffee. Your support is greatly appreciated!