Hipsterify your JavaScript: unusual tricks to make your code simpler

Modern JavaScript gives developers a lot of opportunities to write code faster and to make it simpler to read. All you need is to explore its new features and to adopt them as a rule in your team.

Here are some tricks that I use to simplify the code of mine and the people whom I review. Some of them can look a bit weird for the first time but they are seen well after you meet them in code a couple of times.