How to check if a given string key exists in Enum? August 22, 2023 by Tarik You could use the in operator: if ('value4' in someEnum) { // ... }