🎭 predicate 🔢 customizable
Checks if A is a readonly array or tuple
A
type R = IsReadonly<readonly string[]> // truetype R = IsReadonly<readonly [1, 2, 3, 4, 5]> // truetype R = IsReadonly<[1, 2, 3, 4, 5]> // falsetype R = IsReadonly<readonly string[] | number> // boolean Copy
type R = IsReadonly<readonly string[]> // truetype R = IsReadonly<readonly [1, 2, 3, 4, 5]> // truetype R = IsReadonly<[1, 2, 3, 4, 5]> // falsetype R = IsReadonly<readonly string[] | number> // boolean
🎭 predicate 🔢 customizable
Checks if
A
is a readonly array or tuple