The default equality comparer, used when a comparer is not supplied to a function. Uses an internal deep equality check.
x
(Any): The first value to comparey
(Any): The second value to compare
(Boolean): true
if equal; else false
.
var comparer = Rx.helpers.defaultComparer;
// Should return true
var x = 42, y = 42
console.log(comparer(x, y));
// => true
// Should return false
var x = new Date(0), y = new Date();
console.log(comparer(x, y));
// => false