The Mixin Pattern

In traditional programming languages such as C++ and Lisp, Mixins are classes that offer functionality that can be easily inherited by a sub-class or group of sub-classes for the purpose of function reuse.

Get Learning JavaScript Design Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.