1.0.2 • Published 2 years ago

abstract-strict-deep-equal v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Abstract Strict Deep Equal

An incredibly LIGHT helper function to calculate deep equality using abstract(==) or strict(===) method.

npm version Min Min Gziped

Instalation

$ yarn add abstract-strict-deep-equal

or

$ npm install --save abstract-strict-deep-equal

Usage

import deepEqual from "abstract-strict-deep-equal";

deepEqual({ a: "1" }, { a: 1 }); // It will returns true
deepEqual({ a: "1" }, { a: 1 }, true); // It will returns false

Demo

https://codesandbox.io/s/javascript-forked-xm92g?file=/index.js