Answers for "convert number to enum typescript"

0

enum to number typescript

enum UserResponse {
  No = 0,
  Yes = 1,
}
console.log(UserResponse.Yes) //logs : 1
Posted by: Guest on January-08-2021

Code answers related to "convert number to enum typescript"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language