1.1.0 • Published 7 years ago

two-equals v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

two-equals

npm npm

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:

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