or run

npx @tessl/cli init
Log in

Version

Tile

Overview

Evals

Files

docs

babel-helpers.mdcore-js-polyfills.mdindex.mdregenerator-runtime.md
tile.json

core-js-polyfills.mddocs/

Core-js Polyfills

ES6+ polyfills for built-in objects and methods, providing modern JavaScript features without modifying global prototypes. Each polyfill is available as an individual module that exports the implementation with { default: implementation, __esModule: true }.

Capabilities

Built-in Objects

Polyfills for ES6+ built-in constructors and global objects.

/**
 * Symbol constructor polyfill
 * @module babel-runtime/core-js/symbol
 */
import _Symbol from "babel-runtime/core-js/symbol";

/**
 * Promise constructor polyfill
 * @module babel-runtime/core-js/promise
 */
import _Promise from "babel-runtime/core-js/promise";

/**
 * Map constructor polyfill
 * @module babel-runtime/core-js/map
 */
import _Map from "babel-runtime/core-js/map";

/**
 * WeakMap constructor polyfill
 * @module babel-runtime/core-js/weak-map
 */
import _WeakMap from "babel-runtime/core-js/weak-map";

/**
 * Set constructor polyfill
 * @module babel-runtime/core-js/set
 */
import _Set from "babel-runtime/core-js/set";

/**
 * WeakSet constructor polyfill
 * @module babel-runtime/core-js/weak-set
 */
import _WeakSet from "babel-runtime/core-js/weak-set";

/**
 * Observable constructor polyfill
 * @module babel-runtime/core-js/observable
 */
import _Observable from "babel-runtime/core-js/observable";

Global Function Polyfills:

/**
 * setImmediate function polyfill
 * @module babel-runtime/core-js/set-immediate
 */
import _setImmediate from "babel-runtime/core-js/set-immediate";

/**
 * clearImmediate function polyfill
 * @module babel-runtime/core-js/clear-immediate
 */
import _clearImmediate from "babel-runtime/core-js/clear-immediate";

/**
 * asap function polyfill
 * @module babel-runtime/core-js/asap
 */
import _asap from "babel-runtime/core-js/asap";

Array Methods

Polyfills for ES6+ Array prototype and static methods.

/**
 * Array.prototype.copyWithin polyfill
 * @module babel-runtime/core-js/array/copy-within
 */
import _copyWithin from "babel-runtime/core-js/array/copy-within";

/**
 * Array.prototype.entries polyfill
 * @module babel-runtime/core-js/array/entries
 */
import _entries from "babel-runtime/core-js/array/entries";

/**
 * Array.prototype.every polyfill
 * @module babel-runtime/core-js/array/every
 */
import _every from "babel-runtime/core-js/array/every";

/**
 * Array.prototype.fill polyfill
 * @module babel-runtime/core-js/array/fill
 */
import _fill from "babel-runtime/core-js/array/fill";

/**
 * Array.prototype.filter polyfill
 * @module babel-runtime/core-js/array/filter
 */
import _filter from "babel-runtime/core-js/array/filter";

/**
 * Array.prototype.find polyfill
 * @module babel-runtime/core-js/array/find
 */
import _find from "babel-runtime/core-js/array/find";

/**
 * Array.prototype.findIndex polyfill
 * @module babel-runtime/core-js/array/find-index
 */
import _findIndex from "babel-runtime/core-js/array/find-index";

/**
 * Array.prototype.forEach polyfill
 * @module babel-runtime/core-js/array/for-each
 */
import _forEach from "babel-runtime/core-js/array/for-each";

/**
 * Array.from static method polyfill
 * @module babel-runtime/core-js/array/from
 */
import _from from "babel-runtime/core-js/array/from";

/**
 * Array.prototype.includes polyfill
 * @module babel-runtime/core-js/array/includes
 */
import _includes from "babel-runtime/core-js/array/includes";

/**
 * Array.prototype.indexOf polyfill
 * @module babel-runtime/core-js/array/index-of
 */
import _indexOf from "babel-runtime/core-js/array/index-of";

/**
 * Array.prototype.join polyfill
 * @module babel-runtime/core-js/array/join
 */
import _join from "babel-runtime/core-js/array/join";

/**
 * Array.prototype.keys polyfill
 * @module babel-runtime/core-js/array/keys
 */
import _keys from "babel-runtime/core-js/array/keys";

/**
 * Array.prototype.lastIndexOf polyfill
 * @module babel-runtime/core-js/array/last-index-of
 */
import _lastIndexOf from "babel-runtime/core-js/array/last-index-of";

/**
 * Array.prototype.map polyfill
 * @module babel-runtime/core-js/array/map
 */
import _map from "babel-runtime/core-js/array/map";

/**
 * Array.of static method polyfill
 * @module babel-runtime/core-js/array/of
 */
import _of from "babel-runtime/core-js/array/of";

/**
 * Array.prototype.reduce polyfill
 * @module babel-runtime/core-js/array/reduce
 */
import _reduce from "babel-runtime/core-js/array/reduce";

/**
 * Array.prototype.reduceRight polyfill
 * @module babel-runtime/core-js/array/reduce-right
 */
import _reduceRight from "babel-runtime/core-js/array/reduce-right";

/**
 * Array.prototype.some polyfill
 * @module babel-runtime/core-js/array/some
 */
import _some from "babel-runtime/core-js/array/some";

/**
 * Array.prototype.sort polyfill
 * @module babel-runtime/core-js/array/sort
 */
import _sort from "babel-runtime/core-js/array/sort";

/**
 * Array.prototype.splice polyfill
 * @module babel-runtime/core-js/array/splice
 */
import _splice from "babel-runtime/core-js/array/splice";

/**
 * Array.prototype.values polyfill
 * @module babel-runtime/core-js/array/values
 */
import _values from "babel-runtime/core-js/array/values";

Object Methods

Polyfills for ES6+ Object static methods.

/**
 * Object.assign polyfill
 * @module babel-runtime/core-js/object/assign
 */
import _assign from "babel-runtime/core-js/object/assign";

/**
 * Object.create polyfill
 * @module babel-runtime/core-js/object/create
 */
import _create from "babel-runtime/core-js/object/create";

/**
 * Object.defineProperty polyfill
 * @module babel-runtime/core-js/object/define-property
 */
import _defineProperty from "babel-runtime/core-js/object/define-property";

/**
 * Object.defineProperties polyfill
 * @module babel-runtime/core-js/object/define-properties
 */
import _defineProperties from "babel-runtime/core-js/object/define-properties";

/**
 * Object.entries polyfill
 * @module babel-runtime/core-js/object/entries
 */
import _entries from "babel-runtime/core-js/object/entries";

/**
 * Object.freeze polyfill
 * @module babel-runtime/core-js/object/freeze
 */
import _freeze from "babel-runtime/core-js/object/freeze";

/**
 * Object.getOwnPropertyDescriptor polyfill
 * @module babel-runtime/core-js/object/get-own-property-descriptor
 */
import _getOwnPropertyDescriptor from "babel-runtime/core-js/object/get-own-property-descriptor";

/**
 * Object.getOwnPropertyDescriptors polyfill
 * @module babel-runtime/core-js/object/get-own-property-descriptors
 */
import _getOwnPropertyDescriptors from "babel-runtime/core-js/object/get-own-property-descriptors";

/**
 * Object.getOwnPropertyNames polyfill
 * @module babel-runtime/core-js/object/get-own-property-names
 */
import _getOwnPropertyNames from "babel-runtime/core-js/object/get-own-property-names";

/**
 * Object.getOwnPropertySymbols polyfill
 * @module babel-runtime/core-js/object/get-own-property-symbols
 */
import _getOwnPropertySymbols from "babel-runtime/core-js/object/get-own-property-symbols";

/**
 * Object.getPrototypeOf polyfill
 * @module babel-runtime/core-js/object/get-prototype-of
 */
import _getPrototypeOf from "babel-runtime/core-js/object/get-prototype-of";

/**
 * Object.is polyfill
 * @module babel-runtime/core-js/object/is
 */
import _is from "babel-runtime/core-js/object/is";

/**
 * Object.isExtensible polyfill
 * @module babel-runtime/core-js/object/is-extensible
 */
import _isExtensible from "babel-runtime/core-js/object/is-extensible";

/**
 * Object.isFrozen polyfill
 * @module babel-runtime/core-js/object/is-frozen
 */
import _isFrozen from "babel-runtime/core-js/object/is-frozen";

/**
 * Object.isSealed polyfill
 * @module babel-runtime/core-js/object/is-sealed
 */
import _isSealed from "babel-runtime/core-js/object/is-sealed";

/**
 * Object.keys polyfill
 * @module babel-runtime/core-js/object/keys
 */
import _keys from "babel-runtime/core-js/object/keys";

/**
 * Object.preventExtensions polyfill
 * @module babel-runtime/core-js/object/prevent-extensions
 */
import _preventExtensions from "babel-runtime/core-js/object/prevent-extensions";

/**
 * Object.seal polyfill
 * @module babel-runtime/core-js/object/seal
 */
import _seal from "babel-runtime/core-js/object/seal";

/**
 * Object.setPrototypeOf polyfill
 * @module babel-runtime/core-js/object/set-prototype-of
 */
import _setPrototypeOf from "babel-runtime/core-js/object/set-prototype-of";

/**
 * Object.values polyfill
 * @module babel-runtime/core-js/object/values
 */
import _values from "babel-runtime/core-js/object/values";

String Methods

Polyfills for ES6+ String prototype and static methods.

/**
 * String.prototype.at polyfill
 * @module babel-runtime/core-js/string/at
 */
import _at from "babel-runtime/core-js/string/at";

/**
 * String.prototype.codePointAt polyfill
 * @module babel-runtime/core-js/string/code-point-at
 */
import _codePointAt from "babel-runtime/core-js/string/code-point-at";

/**
 * String.prototype.endsWith polyfill
 * @module babel-runtime/core-js/string/ends-with
 */
import _endsWith from "babel-runtime/core-js/string/ends-with";

/**
 * String.fromCodePoint static method polyfill
 * @module babel-runtime/core-js/string/from-code-point
 */
import _fromCodePoint from "babel-runtime/core-js/string/from-code-point";

/**
 * String.prototype.includes polyfill
 * @module babel-runtime/core-js/string/includes
 */
import _includes from "babel-runtime/core-js/string/includes";

/**
 * String.prototype.matchAll polyfill
 * @module babel-runtime/core-js/string/match-all
 */
import _matchAll from "babel-runtime/core-js/string/match-all";

/**
 * String.prototype.padStart polyfill
 * @module babel-runtime/core-js/string/pad-start
 */
import _padStart from "babel-runtime/core-js/string/pad-start";

/**
 * String.prototype.padEnd polyfill
 * @module babel-runtime/core-js/string/pad-end
 */
import _padEnd from "babel-runtime/core-js/string/pad-end";

/**
 * String.raw static method polyfill
 * @module babel-runtime/core-js/string/raw
 */
import _raw from "babel-runtime/core-js/string/raw";

/**
 * String.prototype.repeat polyfill
 * @module babel-runtime/core-js/string/repeat
 */
import _repeat from "babel-runtime/core-js/string/repeat";

/**
 * String.prototype.startsWith polyfill
 * @module babel-runtime/core-js/string/starts-with
 */
import _startsWith from "babel-runtime/core-js/string/starts-with";

/**
 * String.prototype.trim polyfill
 * @module babel-runtime/core-js/string/trim
 */
import _trim from "babel-runtime/core-js/string/trim";

/**
 * String.prototype.trimStart polyfill
 * @module babel-runtime/core-js/string/trim-start
 */
import _trimStart from "babel-runtime/core-js/string/trim-start";

/**
 * String.prototype.trimEnd polyfill
 * @module babel-runtime/core-js/string/trim-end
 */
import _trimEnd from "babel-runtime/core-js/string/trim-end";

Deprecated String Methods:

/**
 * String.prototype.padLeft polyfill (deprecated, use padStart)
 * @module babel-runtime/core-js/string/pad-left
 * @deprecated Use padStart instead
 */
import _padLeft from "babel-runtime/core-js/string/pad-left";

/**
 * String.prototype.padRight polyfill (deprecated, use padEnd)
 * @module babel-runtime/core-js/string/pad-right
 * @deprecated Use padEnd instead
 */
import _padRight from "babel-runtime/core-js/string/pad-right";

/**
 * String.prototype.trimLeft polyfill
 * @module babel-runtime/core-js/string/trim-left
 */
import _trimLeft from "babel-runtime/core-js/string/trim-left";

/**
 * String.prototype.trimRight polyfill
 * @module babel-runtime/core-js/string/trim-right
 */
import _trimRight from "babel-runtime/core-js/string/trim-right";

Number Methods

Polyfills for ES6+ Number static methods and constants.

/**
 * Number.EPSILON constant polyfill
 * @module babel-runtime/core-js/number/epsilon
 */
import _EPSILON from "babel-runtime/core-js/number/epsilon";

/**
 * Number.isFinite polyfill
 * @module babel-runtime/core-js/number/is-finite
 */
import _isFinite from "babel-runtime/core-js/number/is-finite";

/**
 * Number.isInteger polyfill
 * @module babel-runtime/core-js/number/is-integer
 */
import _isInteger from "babel-runtime/core-js/number/is-integer";

/**
 * Number.isNaN polyfill
 * @module babel-runtime/core-js/number/is-nan
 */
import _isNaN from "babel-runtime/core-js/number/is-nan";

/**
 * Number.isSafeInteger polyfill
 * @module babel-runtime/core-js/number/is-safe-integer
 */
import _isSafeInteger from "babel-runtime/core-js/number/is-safe-integer";

/**
 * Number.MAX_SAFE_INTEGER constant polyfill
 * @module babel-runtime/core-js/number/max-safe-integer
 */
import _MAX_SAFE_INTEGER from "babel-runtime/core-js/number/max-safe-integer";

/**
 * Number.MIN_SAFE_INTEGER constant polyfill
 * @module babel-runtime/core-js/number/min-safe-integer
 */
import _MIN_SAFE_INTEGER from "babel-runtime/core-js/number/min-safe-integer";

/**
 * Number.parseFloat polyfill
 * @module babel-runtime/core-js/number/parse-float
 */
import _parseFloat from "babel-runtime/core-js/number/parse-float";

/**
 * Number.parseInt polyfill
 * @module babel-runtime/core-js/number/parse-int
 */
import _parseInt from "babel-runtime/core-js/number/parse-int";

Math Methods

Polyfills for ES6+ Math static methods.

/**
 * Math.acosh polyfill
 * @module babel-runtime/core-js/math/acosh
 */
import _acosh from "babel-runtime/core-js/math/acosh";

/**
 * Math.asinh polyfill
 * @module babel-runtime/core-js/math/asinh
 */
import _asinh from "babel-runtime/core-js/math/asinh";

/**
 * Math.atanh polyfill
 * @module babel-runtime/core-js/math/atanh
 */
import _atanh from "babel-runtime/core-js/math/atanh";

/**
 * Math.cbrt polyfill
 * @module babel-runtime/core-js/math/cbrt
 */
import _cbrt from "babel-runtime/core-js/math/cbrt";

/**
 * Math.clz32 polyfill
 * @module babel-runtime/core-js/math/clz32
 */
import _clz32 from "babel-runtime/core-js/math/clz32";

/**
 * Math.cosh polyfill
 * @module babel-runtime/core-js/math/cosh
 */
import _cosh from "babel-runtime/core-js/math/cosh";

/**
 * Math.expm1 polyfill
 * @module babel-runtime/core-js/math/expm1
 */
import _expm1 from "babel-runtime/core-js/math/expm1";

/**
 * Math.fround polyfill
 * @module babel-runtime/core-js/math/fround
 */
import _fround from "babel-runtime/core-js/math/fround";

/**
 * Math.hypot polyfill
 * @module babel-runtime/core-js/math/hypot
 */
import _hypot from "babel-runtime/core-js/math/hypot";

/**
 * Math.imul polyfill
 * @module babel-runtime/core-js/math/imul
 */
import _imul from "babel-runtime/core-js/math/imul";

/**
 * Math.log10 polyfill
 * @module babel-runtime/core-js/math/log10
 */
import _log10 from "babel-runtime/core-js/math/log10";

/**
 * Math.log1p polyfill
 * @module babel-runtime/core-js/math/log1p
 */
import _log1p from "babel-runtime/core-js/math/log1p";

/**
 * Math.log2 polyfill
 * @module babel-runtime/core-js/math/log2
 */
import _log2 from "babel-runtime/core-js/math/log2";

/**
 * Math.sign polyfill
 * @module babel-runtime/core-js/math/sign
 */
import _sign from "babel-runtime/core-js/math/sign";

/**
 * Math.sinh polyfill
 * @module babel-runtime/core-js/math/sinh
 */
import _sinh from "babel-runtime/core-js/math/sinh";

/**
 * Math.tanh polyfill
 * @module babel-runtime/core-js/math/tanh
 */
import _tanh from "babel-runtime/core-js/math/tanh";

/**
 * Math.trunc polyfill
 * @module babel-runtime/core-js/math/trunc
 */
import _trunc from "babel-runtime/core-js/math/trunc";

/**
 * Math.iaddh polyfill
 * @module babel-runtime/core-js/math/iaddh
 */
import _iaddh from "babel-runtime/core-js/math/iaddh";

/**
 * Math.isubh polyfill
 * @module babel-runtime/core-js/math/isubh
 */
import _isubh from "babel-runtime/core-js/math/isubh";

/**
 * Math.imulh polyfill
 * @module babel-runtime/core-js/math/imulh
 */
import _imulh from "babel-runtime/core-js/math/imulh";

/**
 * Math.umulh polyfill
 * @module babel-runtime/core-js/math/umulh
 */
import _umulh from "babel-runtime/core-js/math/umulh";

Symbol Methods

Polyfills for Symbol static methods and well-known symbols.

/**
 * Symbol.for polyfill
 * @module babel-runtime/core-js/symbol/for
 */
import _for from "babel-runtime/core-js/symbol/for";

/**
 * Symbol.keyFor polyfill
 * @module babel-runtime/core-js/symbol/key-for
 */
import _keyFor from "babel-runtime/core-js/symbol/key-for";

/**
 * Symbol.hasInstance polyfill
 * @module babel-runtime/core-js/symbol/has-instance
 */
import _hasInstance from "babel-runtime/core-js/symbol/has-instance";

/**
 * Symbol.isConcatSpreadable polyfill
 * @module babel-runtime/core-js/symbol/is-concat-spreadable
 */
import _isConcatSpreadable from "babel-runtime/core-js/symbol/is-concat-spreadable";

/**
 * Symbol.iterator polyfill
 * @module babel-runtime/core-js/symbol/iterator
 */
import _iterator from "babel-runtime/core-js/symbol/iterator";

/**
 * Symbol.match polyfill
 * @module babel-runtime/core-js/symbol/match
 */
import _match from "babel-runtime/core-js/symbol/match";

/**
 * Symbol.replace polyfill
 * @module babel-runtime/core-js/symbol/replace
 */
import _replace from "babel-runtime/core-js/symbol/replace";

/**
 * Symbol.search polyfill
 * @module babel-runtime/core-js/symbol/search
 */
import _search from "babel-runtime/core-js/symbol/search";

/**
 * Symbol.species polyfill
 * @module babel-runtime/core-js/symbol/species
 */
import _species from "babel-runtime/core-js/symbol/species";

/**
 * Symbol.split polyfill
 * @module babel-runtime/core-js/symbol/split
 */
import _split from "babel-runtime/core-js/symbol/split";

/**
 * Symbol.toPrimitive polyfill
 * @module babel-runtime/core-js/symbol/to-primitive
 */
import _toPrimitive from "babel-runtime/core-js/symbol/to-primitive";

/**
 * Symbol.toStringTag polyfill
 * @module babel-runtime/core-js/symbol/to-string-tag
 */
import _toStringTag from "babel-runtime/core-js/symbol/to-string-tag";

/**
 * Symbol.unscopables polyfill
 * @module babel-runtime/core-js/symbol/unscopables
 */
import _unscopables from "babel-runtime/core-js/symbol/unscopables";

Reflect Methods

Polyfills for ES6+ Reflect static methods.

/**
 * Reflect.apply polyfill
 * @module babel-runtime/core-js/reflect/apply
 */
import _apply from "babel-runtime/core-js/reflect/apply";

/**
 * Reflect.construct polyfill
 * @module babel-runtime/core-js/reflect/construct
 */
import _construct from "babel-runtime/core-js/reflect/construct";

/**
 * Reflect.defineProperty polyfill
 * @module babel-runtime/core-js/reflect/define-property
 */
import _defineProperty from "babel-runtime/core-js/reflect/define-property";

/**
 * Reflect.deleteProperty polyfill
 * @module babel-runtime/core-js/reflect/delete-property
 */
import _deleteProperty from "babel-runtime/core-js/reflect/delete-property";

/**
 * Reflect.get polyfill
 * @module babel-runtime/core-js/reflect/get
 */
import _get from "babel-runtime/core-js/reflect/get";

/**
 * Reflect.getOwnPropertyDescriptor polyfill
 * @module babel-runtime/core-js/reflect/get-own-property-descriptor
 */
import _getOwnPropertyDescriptor from "babel-runtime/core-js/reflect/get-own-property-descriptor";

/**
 * Reflect.getPrototypeOf polyfill
 * @module babel-runtime/core-js/reflect/get-prototype-of
 */
import _getPrototypeOf from "babel-runtime/core-js/reflect/get-prototype-of";

/**
 * Reflect.has polyfill
 * @module babel-runtime/core-js/reflect/has
 */
import _has from "babel-runtime/core-js/reflect/has";

/**
 * Reflect.isExtensible polyfill
 * @module babel-runtime/core-js/reflect/is-extensible
 */
import _isExtensible from "babel-runtime/core-js/reflect/is-extensible";

/**
 * Reflect.ownKeys polyfill
 * @module babel-runtime/core-js/reflect/own-keys
 */
import _ownKeys from "babel-runtime/core-js/reflect/own-keys";

/**
 * Reflect.preventExtensions polyfill
 * @module babel-runtime/core-js/reflect/prevent-extensions
 */
import _preventExtensions from "babel-runtime/core-js/reflect/prevent-extensions";

/**
 * Reflect.set polyfill
 * @module babel-runtime/core-js/reflect/set
 */
import _set from "babel-runtime/core-js/reflect/set";

/**
 * Reflect.setPrototypeOf polyfill
 * @module babel-runtime/core-js/reflect/set-prototype-of
 */
import _setPrototypeOf from "babel-runtime/core-js/reflect/set-prototype-of";

/**
 * Reflect.defineMetadata polyfill
 * @module babel-runtime/core-js/reflect/define-metadata
 */
import _defineMetadata from "babel-runtime/core-js/reflect/define-metadata";

/**
 * Reflect.deleteMetadata polyfill
 * @module babel-runtime/core-js/reflect/delete-metadata
 */
import _deleteMetadata from "babel-runtime/core-js/reflect/delete-metadata";

/**
 * Reflect.getMetadata polyfill
 * @module babel-runtime/core-js/reflect/get-metadata
 */
import _getMetadata from "babel-runtime/core-js/reflect/get-metadata";

/**
 * Reflect.getMetadataKeys polyfill
 * @module babel-runtime/core-js/reflect/get-metadata-keys
 */
import _getMetadataKeys from "babel-runtime/core-js/reflect/get-metadata-keys";

/**
 * Reflect.getOwnMetadata polyfill
 * @module babel-runtime/core-js/reflect/get-own-metadata
 */
import _getOwnMetadata from "babel-runtime/core-js/reflect/get-own-metadata";

/**
 * Reflect.getOwnMetadataKeys polyfill
 * @module babel-runtime/core-js/reflect/get-own-metadata-keys
 */
import _getOwnMetadataKeys from "babel-runtime/core-js/reflect/get-own-metadata-keys";

/**
 * Reflect.hasMetadata polyfill
 * @module babel-runtime/core-js/reflect/has-metadata
 */
import _hasMetadata from "babel-runtime/core-js/reflect/has-metadata";

/**
 * Reflect.hasOwnMetadata polyfill
 * @module babel-runtime/core-js/reflect/has-own-metadata
 */
import _hasOwnMetadata from "babel-runtime/core-js/reflect/has-own-metadata";

/**
 * Reflect.metadata polyfill
 * @module babel-runtime/core-js/reflect/metadata
 */
import _metadata from "babel-runtime/core-js/reflect/metadata";

Iterator Utilities

Special iterator-related helper functions.

/**
 * Gets an iterator from an iterable object
 * @module babel-runtime/core-js/get-iterator
 */
import _getIterator from "babel-runtime/core-js/get-iterator";

/**
 * Checks if an object is iterable
 * @module babel-runtime/core-js/is-iterable
 */
import _isIterable from "babel-runtime/core-js/is-iterable";

Deprecated Array Methods

Legacy array methods that are deprecated but still available for compatibility.

/**
 * Array.prototype.concat polyfill (deprecated)
 * @module babel-runtime/core-js/array/concat
 * @deprecated Use native concat method
 */
import _concat from "babel-runtime/core-js/array/concat";

/**
 * Array.prototype.pop polyfill (deprecated)
 * @module babel-runtime/core-js/array/pop
 * @deprecated Use native pop method
 */
import _pop from "babel-runtime/core-js/array/pop";

/**
 * Array.prototype.push polyfill (deprecated)
 * @module babel-runtime/core-js/array/push
 * @deprecated Use native push method
 */
import _push from "babel-runtime/core-js/array/push";

/**
 * Array.prototype.reverse polyfill (deprecated)
 * @module babel-runtime/core-js/array/reverse
 * @deprecated Use native reverse method
 */
import _reverse from "babel-runtime/core-js/array/reverse";

/**
 * Array.prototype.shift polyfill (deprecated)
 * @module babel-runtime/core-js/array/shift
 * @deprecated Use native shift method
 */
import _shift from "babel-runtime/core-js/array/shift";

/**
 * Array.prototype.slice polyfill (deprecated)
 * @module babel-runtime/core-js/array/slice
 * @deprecated Use native slice method
 */
import _slice from "babel-runtime/core-js/array/slice";

/**
 * Array.prototype.unshift polyfill (deprecated)
 * @module babel-runtime/core-js/array/unshift
 * @deprecated Use native unshift method
 */
import _unshift from "babel-runtime/core-js/array/unshift";

Deprecated Reflect Methods

Legacy reflect methods that are deprecated.

/**
 * Reflect.enumerate polyfill (deprecated)
 * @module babel-runtime/core-js/reflect/enumerate
 * @deprecated This method has been removed from the ES specification
 */
import _enumerate from "babel-runtime/core-js/reflect/enumerate";

Other Polyfills

Additional polyfills for various APIs including JSON, System, RegExp, and Error utilities.

/**
 * JSON.stringify polyfill
 * @module babel-runtime/core-js/json/stringify
 */
import _stringify from "babel-runtime/core-js/json/stringify";

/**
 * System.global polyfill
 * @module babel-runtime/core-js/system/global
 */
import _global from "babel-runtime/core-js/system/global";

/**
 * RegExp.escape polyfill (deprecated)
 * @module babel-runtime/core-js/regexp/escape
 * @deprecated This method is deprecated
 */
import _escape from "babel-runtime/core-js/regexp/escape";

/**
 * Error.isError polyfill (deprecated)
 * @module babel-runtime/core-js/error/is-error
 * @deprecated This method is deprecated
 */
import _isError from "babel-runtime/core-js/error/is-error";

Core-js Library Access

Direct access to the complete core-js library.

/**
 * Complete core-js library access
 * @module babel-runtime/core-js
 * @returns {Object} The entire core-js library object
 */
import coreJs from "babel-runtime/core-js";

// Provides access to all core-js features
// coreJs.Promise, coreJs.Symbol, coreJs.Map, etc.

Usage Examples

Basic Usage with Transform Plugin:

// Input code (gets transformed by babel-plugin-transform-runtime)
const data = [1, 2, 3];
const hasTwo = data.includes(2);
const doubled = data.map(x => x * 2);

// Transformed code
import _includes from "babel-runtime/core-js/array/includes";
import _map from "babel-runtime/core-js/array/map";

const data = [1, 2, 3];
const hasTwo = _includes(data).call(data, 2);
const doubled = _map(data).call(data, x => x * 2);

Manual Usage (not recommended):

// Direct module imports
const Promise = require("babel-runtime/core-js/promise").default;
const includes = require("babel-runtime/core-js/array/includes").default;

// Usage
const myPromise = new Promise(resolve => resolve([1, 2, 3]));
myPromise.then(data => {
  const hasTwo = includes.call(data, 2);
  console.log(hasTwo); // true
});

Types

// All core-js modules export with this pattern
interface CoreJSModule<T> {
  default: T;
  __esModule: true;
}

// Built-in constructor types
type SymbolConstructor = typeof Symbol;
type PromiseConstructor = typeof Promise;
type MapConstructor = typeof Map;
type SetConstructor = typeof Set;

// Method types follow native signatures
type ArrayIncludesMethod = <T>(searchElement: T, fromIndex?: number) => boolean;
type ObjectAssignMethod = <T>(target: T, ...sources: any[]) => T;
type StringStartsWithMethod = (searchString: string, position?: number) => boolean;