Wrapping up ES6
We've learned several new features of ES6. In this lesson, we will use them together to see how all of them combine to help us write more readable and understandable code.
You can really feel the power of ES6 when you use all of the features that we just learned.
In ES5 we use “arrayish” object arguments
to receive arbitrary number of arguments.
“arrayish” means it is not quite array, for example it does not have array methods like map
, filter
, reduce
and so on.
We can transform it to array like that.
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy