4 ms·
Yes, that's an ES2015 (formerly known as ES6) feature called destructuring. It's just one of the great features of ES2015. You can use ES6 today by transpiling
by billybolero 12y ago
Yes, that's an ES2015 (formerly known as ES6) feature called destructuring. It's just one of the great features of ES2015. You can use ES6 today by transpiling to ES5 with https://babeljs.io https://babeljs.io