User Defined Type Guards
Imagine that you have a transportation array. Our array will have car and plane objects in it. Our task will be to add a type to our array and print car emoji or a plane emoji in our UI.
Let's create an array and add types for it.
interface Car {
h...
nocd.hashnode.dev4 min read