Roast topics
Find topics
Roast it!
Roast topics
Find topics
Find it!
Login
From:
Total TypeScript
(Uncensored)
subscribe
Use 'in' operator to transform a union to another union (tip)
https://www.totaltypescript.com/tips/use-in-operator-to-transform-a-union-to-another-union
links
backlinks
Transform a union to another union, using the in operator as a kind of for-loop. This pattern can be used for almost any kind of transformation.