This package has been deprecated

Author message:

WARNING: This project has been renamed to 'are-equal'. Install using 'are-equal' instead.

compare-lib

1.4.0 • Public • Published

compare-lib

"compare-lib" is a Javascript library for comparing (by containing data) any two variable (without any order or sorting).

Installation

npm i compare-lib

Usage

const compare = require("compare-lib");

/* For any type, returns "true" if equal,
                         "false" if not equal */
compare.any(item1, item2);

/* For function, returns "true" if equal,
                         "false" if not equal,
                         "undefined" if not function */
compare.fnc(function1, function2);

/* For object, returns "true" if equal,
                       "false" if not equal,
                       "undefined" if not object */
compare.obj(object1, object2);

/* For array, returns "true" if equal,
                      "false" if not equal,
                      "undefined" if not array */
compare.arr(array1, array2);

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

GPLv3

Package Sidebar

Install

npm i compare-lib

Weekly Downloads

1

Version

1.4.0

License

GPLv3

Unpacked Size

41.6 kB

Total Files

4

Last publish

Collaborators

  • abhishek.biswas.npm