https://github.com/rich-97/two-equals
Recursive function for check if two values are equals.
https://github.com/rich-97/two-equals
equals two types
Last synced: 3 months ago
JSON representation
Recursive function for check if two values are equals.
- Host: GitHub
- URL: https://github.com/rich-97/two-equals
- Owner: rich-97
- License: mit
- Created: 2017-04-18T04:34:20.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-19T23:21:09.000Z (about 9 years ago)
- Last Synced: 2025-11-02T18:18:11.058Z (7 months ago)
- Topics: equals, two, types
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# two-equals
[](https://www.npmjs.com/package/two-equals)
[](https://www.npmjs.com/package/two-equals)
Function for check if two values are equals.
## Installation
With the simple command `npm install two-equals`.
## Usage
The function takes only two arguments.
Example:
```js
const equals = require('two-equals');
equals({}, { bar: 12}); // false
equals([], [1, 33.2]); // false
equals({ foo: 12 }, { foo: 12 }); // true
equals([1, 33, false], [1, 33, false]); // true
```
## Test
You should have installed globaly `jasmine-node` for test this package, then execute `npm run test`.
## License
[MIT](https://github.com/rich-97/two-values/blob/master/LICENSE)