Generic Comparison
This lesson explains the difference between comparing two generic types and two primitive types.
We'll cover the following...
Generic and typeof
The generic code does not allow the use of typeof
on T, type new T
, or instanceof T
.
The reason is that the transpilation step removes all traces of type. TypeScript ...