enum Status {
Success = 'success',
Failure = 'failure'
}
console.log(
'Check this out: \n',
Status.Success
);
console.log(
'Now with just a [key]\n',
Status["Success"]
);
enum-demo on main [!] is 📦 v1.0.0 via v16.13.1
❯ yarn yeet
Check this out:
success
Now with just a [key]
success