DEV Community

Discussion on: Understanding JavaScript decorators

Collapse
jfbrennan profile image
Jordan Brennan • Edited

Good article. I understand the pattern a little more now.

I get the temptation to refer to bind as a "workaround" and "hack", but that just isn't accurate. bind is the way to do that in JavaScript. It may seem odd to people new to the language, but for readers it's important to know using bind is perfectly normal and acceptable in the cases it's needed.