3 ms·
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]
by joshuacc 11y ago
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/ https://github.com/paulmillr/es6-shim/
[2] https://babeljs.io/ https://babeljs.io/
- lobster_johnson 11y agoBabel 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 https://github.com/zloirock/core-js