Enums in TypeScript

What I learned from the Trenches

Introduction

An enum is a set of labeled values called members and is used to organize a group of similar values. A typical data type in many programming languages, enums:

  • Improve code readability
  • Reduce the chances of making mistakes in your work.