comparator.js
TypeScript icon, indicating that this package has built-in type declarations

1.4.3 • Public • Published

comparator.js

Tool for compare JavaScript objects in a different way

type of comparisons

  1. strict checks if the objects is the same

  2. loose checks if the objects almost the same at least source not is a subset of dest.

  3. structure checks if the object has the same structure

  4. diff return difference beetwen two objects in js format.

utils fold/unfold objects

more info

see tests for details

TODO

  • tests
  • coverage test
  • benchmark
  • each pair has its own function vise versa so Date String then first agument is for sure Data and Second for sure is String!
  • refactor readme;

Readme

Keywords

Package Sidebar

Install

npm i comparator.js

Weekly Downloads

1

Version

1.4.3

License

none

Unpacked Size

197 kB

Total Files

12

Last publish

Collaborators

  • vedmalex