JavaScript Decorators for Declarative and Readable Code

Decorators in JavaScript are now in stage 2. They allow us to alter the definition of a class, method, or a property. There are already a few neat libraries which provide decorators and make our life easier by allowing us to write more declarative code with better performance characteristics.
In this blog post I’ll share a few decorators which I’m using on a daily basis.
Autobind Autobind is a decorator which allows given method to be automatically bound to a class instance.