compare-object

1.0.0 • Public • Published

JavaScript Object Comparer

When i was learning JavaScript some years back, it took me sometime to understand what Javascript Objects really are. I remember asking myself questions like why comparism operators doesn't work with Objects.

I recently started reading a book by javascript tutor titled JavaScript grammar. Towards the end of the book, he talked about comparing objects and gave a nice approach to how it could be acheieved. This reminded me of my question way back then, so i decided to write a script that does deep comparism on Object literals.

This little project could also serve as a good learning resource for anyone who is inquisitive enough to want to know how to really compare any kind of Object literals(simple or complex). The code has been properly commented and formatted for readability and ease of understanding.

Build Setup

#install dependencies
npm install --save

#run the script
npm run start

#to run test's
npm run test

Go through the test file to see examples of complex objects it can compare.

Thank you!

Readme

Keywords

none

Package Sidebar

Install

npm i compare-object

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

11.3 kB

Total Files

5

Last publish

Collaborators

  • gbahdeyboh