Read this article in Chinese, Russian.
- Manual defaults from ES5 and lower
- ES6 defaults: basic example
- Implementation details
- Conclusion
In this small note we’ll cover another ES6 feature, function parameters with default values. As we will see there are some subtle cases there. Continue reading