Design Pattern: Strategy Pattern in TypeScript
Strategy pattern makes it easier to manage algorithms with the same outline(serving the same purpose in different rule/implementation). This pattern encapsulates the algorithms and enables the client to use them as plugins. This article demonstrates Strategy pattern implementations in TypeScript.