1.0.1 • Published 4 years ago

twinobjects v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

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

License

MIT

1.0.1

4 years ago

1.0.0

4 years ago