Make functions more powerful by telling yourself, your IDE, and TypeScript what types you expect for your function arguments, and what return type you're expecting back.
And, how to make the return type generic.
A quick intro to generics: • Quick Intro To TypeScript Generic Interfac...