Shim for ES.next code?
# Dmitry A. Soshnikov (14 years ago)
There are many already I guess, e.g. pair of possible ES6 methods DmitrySoshnikov/es-laboratory/blob/master/src/es6.js, and also from any other framework (such as String.repeat).
What's the goal? None of discussed methods is standardized yet. But, if you think currently needed, just start to collect and implement them. You will implement just a library. Possibly users will start to use this library (exactly yours library, but not another form tones of), and then it can turn out that ES will standardize another behavior for the same method, which will mean "break the web". There will be two ways
Is anyone planning to collect the planned utility methods (Array.from(), String.repeat(), Object.getOwnProperties(), etc.) in a single file where each of the methods is conditionally added to the appropriate objects. If not, I would do so and publish the result on GitHub.
Compare: ECMAScript 5 shim. kriskowal/es5-shim
Greetings,
Axel