Aditya Revankaradityarevankar.hashnode.dev·Feb 9, 2024Generics for dummiesLet’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...TypeScriptAdd a thoughtful commentNo comments yetBe the first to start the conversation.