4 ms·
I think another reason is that ES6 proxies are impossible to polyfill. My favorite use case would be Facebook's immutable library[1], which uses awkward set(),
by jannes 10y ago
I think another reason is that ES6 proxies are impossible to polyfill.
My favorite use case would be Facebook's immutable library[1], which uses awkward set(), setIn() and updateIn() methods for changing its data structures. But as an ES5+ library it wouldn't want to require the consuming code to do ES6 transpilation.
[1]: https://facebook.github.io/immutable-js/ https://facebook.github.io/immutable-js/
- vertex-four 10y agoIt could reasonably provide an ES5 API over a transpiled ES6 core, for ES5 consumers to use while allowing ES6 consumers to use its ES6 API.