So, in order to utilize ES6 features now and make sure we won't run into cross-browser compatibility issues, we need to transpile our code. Let's look at two possible ways we can perform the task of transpiling our code. First, we will use npm scripts and Babel. For the second, we will look at using Gulp with Babel. Babel Babel is the go-to transpiler for ES6. The presets in Babel allow you to either pick and choose the transformations that you want, or you can select the babel-preset-es2015 preset and work with all the features.
Setting up an ES6 dev environment — Linting — George’s Blog. Techniques With ES6 Default Parameter Values, Spread, and Rest. Default Behavior Default parameter values let function parameters be initialized with default values when no value or undefined is passed.
Today I would love to talk about ES6 classes, what is brings onto the table, and why you should or shouldn’t be concerned. Metaprogramming in ES6: Part 3 - Proxies. In the third and final installment of my Metaprogramming in ES6 series - remember, those posts I wrote over a year ago and promised I wouldn’t take ages to complete but did?
In this last post, we’ll be looking at possibly the coolest ES6 Reflection feature: Proxies. Those of you versed in my back catalogue will have already read my last post, when we had a look at the ES6 Reflect API, and the post before where we took a look at ES6 Symbols - those of you haven’t should go ahead and get versed, the Reflect will be particularly relevant here and is required reading before we continue.
Lazily executed code can give us a bit of a performance boost because computations can be delayed until they are needed. This allows us to create some very interesting functions that can generate an infinite amount of output. Iterable / Iterator Iterator is a pattern for Iterating over a collection. It is a widely used pattern in many Object Oriented Programming languages - implemented as Iterable in Java and IEnumerable in .NET.