Socket
Socket
Sign inDemoInstall

comparator.js

Package Overview
Dependencies
1
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    comparator.js

Comparator.js - different way to compare your js-objects


Version published
Maintainers
1
Install size
612 kB
Created

Readme

Source

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;

Keywords

FAQs

Last updated on 07 Mar 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc