Test whether any adjacent types in a tuple are strictly equal.
Tuple of types to compare
Evaluates to true if at least one pair of neighboring types in the tuple is strictly equal.
true
Tuples with fewer than two elements always evaluate to false.
false
type A = EqualsAny< [ string, number, string ] >; // falsetype B = EqualsAny< [ string, string, number ] >; // truetype C = EqualsAny< [ 1, 2, 3 ] >; // false Copy
type A = EqualsAny< [ string, number, string ] >; // falsetype B = EqualsAny< [ string, string, number ] >; // truetype C = EqualsAny< [ 1, 2, 3 ] >; // false
Test whether any adjacent types in a tuple are strictly equal.