Skip to content

Straits

Straits is an implementation of traits for JavaScript. It defines some conventions about traits and provides libraries to aid their usage, definition and implementation.

Traits are a way to implement polymorphism: to extend objects and types with extra properties and behavior.

Check out our introduction to understand what traits are, why we need them and how obtain them in JavaScript; or our quickstart to start playing with straits.