A class-based enum pattern for JavaScript

added by JavaScript Kicks
1/14/2020 10:13:56 AM

579 Views

In this blog post, we examine a pattern for implementing enums in JavaScript that is based on classes. We'll also take a look at Enumify, a library that helps with the enum pattern. Table of contents: An enum is a type that consists of a set of values.


0 comments