1 | "use strict";
|
2 |
|
3 | require("core-js/shim");
|
4 |
|
5 | require("regenerator-runtime/runtime");
|
6 |
|
7 | require("core-js/fn/regexp/escape");
|
8 |
|
9 | if (global._babelPolyfill) {
|
10 | throw new Error("only one instance of babel-polyfill is allowed");
|
11 | }
|
12 | global._babelPolyfill = true;
|
13 |
|
14 | var DEFINE_PROPERTY = "defineProperty";
|
15 | function define(O, key, value) {
|
16 | O[key] || Object[DEFINE_PROPERTY](O, key, {
|
17 | writable: true,
|
18 | configurable: true,
|
19 | value: value
|
20 | });
|
21 | }
|
22 |
|
23 | define(String.prototype, "padLeft", "".padStart);
|
24 | define(String.prototype, "padRight", "".padEnd);
|
25 |
|
26 | "pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function (key) {
|
27 | [][key] && define(Array, key, Function.call.bind([][key]));
|
28 | }); |
\ | No newline at end of file |