JavaScript Design Patterns - Behavioral - Chain of Responsibility
The chain of responsibility pattern allows passing requests along a chain of objects that have a chance to handle the request.
Upon receiving a request, each handler decides whether to process it or pass it on to the next handler in the chain.
In the...
nhannguyen.hashnode.dev2 min read