Sha256: a8e3a3a6e4cd68e367057bbdaaa9f0c47a3bff97742e2140670eff57f02ff420

Contents?: true

Size: 833 Bytes

Versions: 9

Compression:

Stored size: 833 Bytes

Contents

"use strict";

require("core-js/shim");

require("regenerator-runtime/runtime");

require("core-js/fn/regexp/escape");

if (global._babelPolyfill) {
  throw new Error("only one instance of babel-polyfill is allowed");
}
global._babelPolyfill = true;

var DEFINE_PROPERTY = "defineProperty";
function define(O, key, value) {
  O[key] || Object[DEFINE_PROPERTY](O, key, {
    writable: true,
    configurable: true,
    value: value
  });
}

define(String.prototype, "padLeft", "".padStart);
define(String.prototype, "padRight", "".padEnd);

"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) {
  [][key] && define(Array, key, Function.call.bind([][key]));
});

Version data entries

9 entries across 9 versions & 4 rubygems

Version Path
optimacms-0.4.3 spec/dummy/node_modules/babel-polyfill/lib/index.js
optimacms-0.4.2 spec/dummy/node_modules/babel-polyfill/lib/index.js
lux_assets-0.2.11 ./node_modules/babel-polyfill/lib/index.js
lux_assets-0.2.9 ./node_modules/babel-polyfill/lib/index.js
lux_assets-0.2.4 ./node_modules/babel-polyfill/lib/index.js
lux_assets-0.2.2 ./node_modules/babel-polyfill/lib/index.js
lux_assets-0.2.1 ./node_modules/babel-polyfill/lib/index.js
cortex-0.1.3 spec/dummy/node_modules/babel-polyfill/lib/index.js
affiliator-0.2.1 node_modules/babel-polyfill/lib/index.js