two-equals
v1.1.0
Published
Function for check if two values are equals
Downloads
6
Readme
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:
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
.