Design Pattern: State Pattern in TypeScript
In State pattern implementation, an object behaves differently when on some state change. With the change of state, the behavior can change completely. This article demonstrates State pattern implementations in TypeScript.