Comment on ES6 in Depth: DestructuringparentComments−joshuacc11yFor runtime features like String.prototype.contains you can use a polyfill library like es6-shim[1]. For new syntax, you can use a compiler like Babel[2].[1] https://github.com/paulmillr/es6-shim/ [2] https://babeljs.io/−lobster_johnson11yBabel comes with Core.js [1] built in, which is (I believe) a better and more exhaustive shim library than es6-shim and the others.[1] https://github.com/zloirock/core-js
Comments
For runtime features like String.prototype.contains you can use a polyfill library like es6-shim[1]. For new syntax, you can use a compiler like Babel[2].
[1] https://github.com/paulmillr/es6-shim/ [2] https://babeljs.io/
Babel comes with Core.js [1] built in, which is (I believe) a better and more exhaustive shim library than es6-shim and the others.
[1] https://github.com/zloirock/core-js