Answers for "typescript enum to int"

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 "TypeScript"

Browse Popular Code Answers by Language