Object.freeze() vs const
Object.freeze() seems like a transitional convenience method to move towards using const in ES6. Are there cases where both take their place in … Read more
Object.freeze() seems like a transitional convenience method to move towards using const in ES6. Are there cases where both take their place in … Read more
React router allows react apps to handle /arbitrary/route. In order this to work, I need my server to send the React app on … Read more
I use the flag –experimental-modules when running my Node application in order to use ES6 modules. However when I use this flag the … Read more
I’m rebuilding an old Java project in Javascript, and realized that there’s no good way to do enums in JS. The best I … Read more
The new ES6 arrow functions say return is implicit under some circumstances: The expression is also the implicit return value of that function. … Read more
In js file, i used import to instead of require import co from ‘co’; And tried to run it directly by nodejs since … Read more
Came to know that from React v15.3.0, we have a new base class called PureComponent to extend with PureRenderMixin built-in. What I understand … Read more
Is there a null-safe property access (null propagation / existence) operator in ES6 (ES2015/JavaScript.next/Harmony) like ?. in CoffeeScript for example? Or is it … Read more
Is it possible to create a template string as a usual string, let a = “b:${b}”; and then convert it into a template … Read more
I’m trying to create a module that exports multiple ES6 classes. Let’s say I have the following directory structure: my/ └── module/ ├── … Read more