Generics for dummies
Let’s say you have a function that needs to return the first element of an array. Array can be of type either string or integer.
Here we have get access to the firstElement which is a type of string.
But we don't have access to default string functi...
adityarevankar.hashnode.dev2 min read