Typescript Generics Made Easy
Problem with ‘any’
function identity(arg: any): any {
return arg;
}
function identity(arg: any) {
return arg;
}
const result = identity(1);
Above examples of an identity function are essentially the same. With or without explicit return, t...
yog3sh.hashnode.dev3 min read