DEV Community

Discussion on: How to check if string is member of union type

Collapse
 
vasylnahuliak profile image
Vasyl Nahuliak • Edited

I guess in enum case have a bug. Need to use Object.keys instead Object.values

dev-to-uploads.s3.amazonaws.com/up...

Collapse
 
hansott profile image
Hans Ott (journy.io)

Oh, you're right. Thanks for spotting! I'll update the blogpost.