"Split or condition in if" refactoring in TypeScript
30/12/2022
In a previous post we documented the Split or condition in if refactoring. This refactoring works fine for most languages. Unfortunately, it may occasionally present some problems in TypeScript because of how its compiler works. After applying the Split or condition in if refactoring, the resulting code will contain duplication,...