Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 1.96 KB

File metadata and controls

14 lines (9 loc) · 1.96 KB

IsTuple medium #tuple

by jiangshan @jiangshanmeta

Take the Challenge

Implement a type IsTuple, which takes an input type T and returns whether T is tuple type.

For example:

type case1 = IsTuple<[number]> // true
type case2 = IsTuple<readonly [number]> // true
type case3 = IsTuple<number[]> // false

Back Share your Solutions Check out Solutions

Related Challenges

1042・IsNever 1097・IsUnion 223・IsAny