GoF Design Patterns: Behavioral Patterns (4) - Iterator, State | TypeScript Examples
This is the fourth part of the Behavioral Patterns series in GoF Design Patterns. Learn the concepts and TypeScript examples of the Iterator pattern, which provides a way to access the elements of a collection sequentially without exposing its underlying representation, and the State pattern, which allows an object to alter its behavior when its internal state changes.
Read in about 5 min readPublished: 2025-07-05
Design PatternsGoFBehavioral PatternsIterator PatternState PatternObject-OrientedTypeScript