@w5s/coreInterfacesEqualSur cette pageEqual <T>Module interface for values that have equivalence relationHierarchyEqualComparableIndex Comparator!===equalsOtherconstructorComparator !=!=(this: void, left: T, right: T): boolean"Not equal to" operator@exampleconst TEqual: Equal<T>;TEqual['!='](value, otherValue); // trueTEqual['!='](value, value); // false====(this: void, left: T, right: T): boolean"Equal to" operator@exampletype T = // ...const TEqual: Equal<T>;TEqual['=='](value, value); // trueTEqual['=='](value, otherValue); // falseequalsequals(this: void, left: T, right: T): booleanAlias to '=='@exampletype T = // ...const TEqual: Equal<T>;TEqual.equals(value, value); // trueTEqual.equals(value, otherValue); // falseOther constructorconstructor:
Module interface for values that have equivalence relation