Generics can be intimidating when you first come across them if you're unfamiliar with typed languages, but once you wrap your head around them, they're as simple as using a variable in JavaScript. This lesson walks through when and why to create a generic and how to use them in TypeScript.
Awesome explanation John! I used to be confused when I saw the <T>. The way you explained it using IDontKnow and having the big reveal at the end was a nice surprise. The biggest aha so far in the course. Thanks! ๐
Awesome explanation John! I used to be confused when I saw the "<T>". The way you explained it using IDontKnow and having the big reveal at the end was a nice surprise. The biggest aha so far in the course. Thanks! ๐
"< T >"
Ah yeah cool, yeah since the example was so small and simple it really helped.