Defines type to support the comparison of objects for equality.
Defines type for key/value pair object.
Implements Deep equality comparer for deep value comparison of objects and Primitive equality comparer for value or reference comparison.
Recursively compare objects by attributes.
let people = [{Name:"John", Age:15},{Name:"John", Age:15},{Name:"John", Age:13}]
people.Distinct().ToArray()
// [{"Name":"John","Age":15},{"Name":"John","Age":15},{"Name":"John","Age":13}]
people.Distinct(EqualityComparers.DeepComparer()).ToArray()
// [{"Name":"John","Age":15},{"Name":"John","Age":13}]
people.Distinct(EqualityComparers.DeepComparer(t=>({Name:t.Name}))).ToArray()
// [{"Name":"John","Age":15}]
people.Distinct(EqualityComparers.DeepComparer(t=>t.Name)).ToArray()
// [{"Name":"John","Age":15}]
Implements default basic and reverse comparer.
Method for switching to noConflict mode. Used in case of incidentally overriding methods.
Generated using TypeDoc
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.