Roast topics
Find topics
Roast it!
Roast topics
Find topics
Find it!
Login
From:
Total TypeScript
(Uncensored)
subscribe
Create your own 'objectKeys' function using generics and the 'keyof' operator (tip)
https://www.totaltypescript.com/tips/create-your-own-objectkeys-function-using-generics-and-the-keyof-operator
links
backlinks
The looseness of Object.keys can be a real pain point when using TypeScript. It's pretty simple to create a tighter version using generics and keyof operator.