JavaScript Design Patterns - Structural - Bridge
The bridge pattern allows one interface in our class to build different implementations depending on what instance we are receiving and what instance we need to return.
In the example below, we create a bridge between types of Soldiers and types of W...
nhannguyen.hashnode.dev1 min read