Rx.helpers.defaultComparer(x, y)
The default equality comparer, used when a comparer is not supplied to a function. Uses an internal deep equality check.
Arguments
x
(Any): The first value to comparey
(Any): The second value to compare
Returns
(Boolean): true
if equal; else false
.
Example
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