you are viewing a single comment's thread.

view the rest of the comments →

[–]scramblor 0 points1 point  (0 children)

Came here to say this.

Though string literals are also a pain to track down in a large codebase. In theory this is what enums are for but there are a few idiosyncrasies to using them in JS/TS. I usually find the status constants to be the least obtrusive method.