$ npm install mongo-eql
Applies the MongoDB equality semantics for a comparison between two datastructures.
eql(null, undefined) // true eql({}, {}) // true
Compares a with b and returns true or false.
a
b
true
false