4 ms·
For many problems a transpiler is not sufficient. Array methods can be polyfilled because we can add arbitrary properties to Array.prototype. We can polyfilled
by underwater 7y ago
For many problems a transpiler is not sufficient. Array methods can be polyfilled because we can add arbitrary properties to Array.prototype. We can polyfilled things like Map and Set because classes are just functions attached to the global scope, so polyfills can be conditional.