First of Array easy #array

by Anthony Fu @antfu

Take the Challenge    简体中文 日本語 한국어

Implement a generic `First` that takes an Array `T` and returns its first element's type. For example: ```ts type arr1 = ['a', 'b', 'c'] type arr2 = [3, 2, 1] type head1 = First // expected to be 'a' type head2 = First // expected to be 3 ```
Back Share your Solutions Check out Solutions

Related Challenges

15・Last of Array