1.0.1 • Published 4 years ago
twinobjects v1.0.1
Twin objects
Description
Check whether two objects have the same data or not.
Features
- Super light
- No dependencies
- Thoroughly tested
Installation
npm install twinobjects --save
Usage
import twinObjects from "twinobjects";
const obj1 = {
fname: "Carlos",
age: 21,
};
const obj2 = {
fname: "Carlos",
age: 25,
};
const obj3 = {
age: 21,
fname: "Carlos",
};
console.log(twinObjects(obj1, obj2)); // => false
console.log(twinObjects(obj1, obj3)); // => true