JSPM

  • Created
  • Published
  • Downloads 12584131
  • Score
    100M100P100Q227245F
  • License MIT

Standard library

Package Exports

  • core-js-pure
  • core-js-pure/es/set
  • core-js-pure/features/aggregate-error
  • core-js-pure/features/array/find
  • core-js-pure/features/array/find-index
  • core-js-pure/features/array/find-index.js
  • core-js-pure/features/array/find.js
  • core-js-pure/features/array/flat-map
  • core-js-pure/features/array/for-each
  • core-js-pure/features/array/from
  • core-js-pure/features/array/includes
  • core-js-pure/features/array/includes.js
  • core-js-pure/features/array/index-of
  • core-js-pure/features/array/is-array
  • core-js-pure/features/array/map
  • core-js-pure/features/array/of
  • core-js-pure/features/clear-immediate
  • core-js-pure/features/composite-key
  • core-js-pure/features/composite-symbol
  • core-js-pure/features/date/now
  • core-js-pure/features/get-iterator
  • core-js-pure/features/get-iterator-method
  • core-js-pure/features/global-this
  • core-js-pure/features/instance/at
  • core-js-pure/features/instance/bind
  • core-js-pure/features/instance/code-point-at
  • core-js-pure/features/instance/code-points
  • core-js-pure/features/instance/concat
  • core-js-pure/features/instance/copy-within
  • core-js-pure/features/instance/ends-with
  • core-js-pure/features/instance/entries
  • core-js-pure/features/instance/every
  • core-js-pure/features/instance/fill
  • core-js-pure/features/instance/filter
  • core-js-pure/features/instance/find
  • core-js-pure/features/instance/find-index
  • core-js-pure/features/instance/flags
  • core-js-pure/features/instance/flat
  • core-js-pure/features/instance/flat-map
  • core-js-pure/features/instance/for-each
  • core-js-pure/features/instance/includes
  • core-js-pure/features/instance/index-of
  • core-js-pure/features/instance/keys
  • core-js-pure/features/instance/last-index-of
  • core-js-pure/features/instance/map
  • core-js-pure/features/instance/match-all
  • core-js-pure/features/instance/pad-end
  • core-js-pure/features/instance/pad-start
  • core-js-pure/features/instance/reduce
  • core-js-pure/features/instance/reduce-right
  • core-js-pure/features/instance/repeat
  • core-js-pure/features/instance/replace-all
  • core-js-pure/features/instance/reverse
  • core-js-pure/features/instance/slice
  • core-js-pure/features/instance/some
  • core-js-pure/features/instance/sort
  • core-js-pure/features/instance/splice
  • core-js-pure/features/instance/starts-with
  • core-js-pure/features/instance/trim
  • core-js-pure/features/instance/trim-end
  • core-js-pure/features/instance/trim-left
  • core-js-pure/features/instance/trim-right
  • core-js-pure/features/instance/trim-start
  • core-js-pure/features/instance/values
  • core-js-pure/features/is-iterable
  • core-js-pure/features/json/stringify
  • core-js-pure/features/map
  • core-js-pure/features/math/acosh
  • core-js-pure/features/math/asinh
  • core-js-pure/features/math/atanh
  • core-js-pure/features/math/cbrt
  • core-js-pure/features/math/clamp
  • core-js-pure/features/math/clz32
  • core-js-pure/features/math/cosh
  • core-js-pure/features/math/deg-per-rad
  • core-js-pure/features/math/degrees
  • core-js-pure/features/math/expm1
  • core-js-pure/features/math/fround
  • core-js-pure/features/math/fscale
  • core-js-pure/features/math/hypot
  • core-js-pure/features/math/iaddh
  • core-js-pure/features/math/imul
  • core-js-pure/features/math/imulh
  • core-js-pure/features/math/isubh
  • core-js-pure/features/math/log10
  • core-js-pure/features/math/log1p
  • core-js-pure/features/math/log2
  • core-js-pure/features/math/rad-per-deg
  • core-js-pure/features/math/radians
  • core-js-pure/features/math/scale
  • core-js-pure/features/math/seeded-prng
  • core-js-pure/features/math/sign
  • core-js-pure/features/math/signbit
  • core-js-pure/features/math/sinh
  • core-js-pure/features/math/tanh
  • core-js-pure/features/math/trunc
  • core-js-pure/features/math/umulh
  • core-js-pure/features/number/epsilon
  • core-js-pure/features/number/from-string
  • core-js-pure/features/number/is-finite
  • core-js-pure/features/number/is-integer
  • core-js-pure/features/number/is-integer.js
  • core-js-pure/features/number/is-nan
  • core-js-pure/features/number/is-safe-integer
  • core-js-pure/features/number/max-safe-integer
  • core-js-pure/features/number/min-safe-integer
  • core-js-pure/features/number/parse-float
  • core-js-pure/features/number/parse-int
  • core-js-pure/features/object/assign
  • core-js-pure/features/object/create
  • core-js-pure/features/object/define-properties
  • core-js-pure/features/object/define-property
  • core-js-pure/features/object/entries
  • core-js-pure/features/object/freeze
  • core-js-pure/features/object/from-entries
  • core-js-pure/features/object/get-own-property-descriptor
  • core-js-pure/features/object/get-own-property-descriptors
  • core-js-pure/features/object/get-own-property-names
  • core-js-pure/features/object/get-own-property-symbols
  • core-js-pure/features/object/get-prototype-of
  • core-js-pure/features/object/is
  • core-js-pure/features/object/is-extensible
  • core-js-pure/features/object/is-frozen
  • core-js-pure/features/object/is-sealed
  • core-js-pure/features/object/keys
  • core-js-pure/features/object/prevent-extensions
  • core-js-pure/features/object/seal
  • core-js-pure/features/object/set-prototype-of
  • core-js-pure/features/object/values
  • core-js-pure/features/observable
  • core-js-pure/features/parse-float
  • core-js-pure/features/parse-int
  • core-js-pure/features/promise
  • core-js-pure/features/queue-microtask
  • core-js-pure/features/reflect/apply
  • core-js-pure/features/reflect/construct
  • core-js-pure/features/reflect/define-metadata
  • core-js-pure/features/reflect/define-property
  • core-js-pure/features/reflect/delete-metadata
  • core-js-pure/features/reflect/delete-property
  • core-js-pure/features/reflect/get
  • core-js-pure/features/reflect/get-metadata
  • core-js-pure/features/reflect/get-metadata-keys
  • core-js-pure/features/reflect/get-own-metadata
  • core-js-pure/features/reflect/get-own-metadata-keys
  • core-js-pure/features/reflect/get-own-property-descriptor
  • core-js-pure/features/reflect/get-prototype-of
  • core-js-pure/features/reflect/has
  • core-js-pure/features/reflect/has-metadata
  • core-js-pure/features/reflect/has-own-metadata
  • core-js-pure/features/reflect/is-extensible
  • core-js-pure/features/reflect/metadata
  • core-js-pure/features/reflect/own-keys
  • core-js-pure/features/reflect/prevent-extensions
  • core-js-pure/features/reflect/set
  • core-js-pure/features/reflect/set-prototype-of
  • core-js-pure/features/set
  • core-js-pure/features/set-immediate
  • core-js-pure/features/set-interval
  • core-js-pure/features/set-timeout
  • core-js-pure/features/set/intersection
  • core-js-pure/features/string/from-code-point
  • core-js-pure/features/string/includes.js
  • core-js-pure/features/string/raw
  • core-js-pure/features/string/virtual/starts-with
  • core-js-pure/features/symbol
  • core-js-pure/features/symbol/async-iterator
  • core-js-pure/features/symbol/async-iterator.js
  • core-js-pure/features/symbol/dispose
  • core-js-pure/features/symbol/for
  • core-js-pure/features/symbol/has-instance
  • core-js-pure/features/symbol/is-concat-spreadable
  • core-js-pure/features/symbol/iterator
  • core-js-pure/features/symbol/key-for
  • core-js-pure/features/symbol/match
  • core-js-pure/features/symbol/observable
  • core-js-pure/features/symbol/pattern-match
  • core-js-pure/features/symbol/replace
  • core-js-pure/features/symbol/search
  • core-js-pure/features/symbol/species
  • core-js-pure/features/symbol/split
  • core-js-pure/features/symbol/to-primitive
  • core-js-pure/features/symbol/to-string-tag
  • core-js-pure/features/symbol/unscopables
  • core-js-pure/features/url
  • core-js-pure/features/url-search-params
  • core-js-pure/features/weak-map
  • core-js-pure/features/weak-set
  • core-js-pure/stable
  • core-js-pure/stable/array/every
  • core-js-pure/stable/array/find
  • core-js-pure/stable/array/from
  • core-js-pure/stable/array/includes
  • core-js-pure/stable/array/is-array
  • core-js-pure/stable/array/of
  • core-js-pure/stable/clear-immediate
  • core-js-pure/stable/date/now
  • core-js-pure/stable/instance/bind
  • core-js-pure/stable/instance/code-point-at
  • core-js-pure/stable/instance/concat
  • core-js-pure/stable/instance/copy-within
  • core-js-pure/stable/instance/ends-with
  • core-js-pure/stable/instance/entries
  • core-js-pure/stable/instance/every
  • core-js-pure/stable/instance/fill
  • core-js-pure/stable/instance/filter
  • core-js-pure/stable/instance/find
  • core-js-pure/stable/instance/find-index
  • core-js-pure/stable/instance/flags
  • core-js-pure/stable/instance/flat
  • core-js-pure/stable/instance/flat-map
  • core-js-pure/stable/instance/for-each
  • core-js-pure/stable/instance/includes
  • core-js-pure/stable/instance/index-of
  • core-js-pure/stable/instance/keys
  • core-js-pure/stable/instance/last-index-of
  • core-js-pure/stable/instance/map
  • core-js-pure/stable/instance/pad-end
  • core-js-pure/stable/instance/pad-start
  • core-js-pure/stable/instance/reduce
  • core-js-pure/stable/instance/reduce-right
  • core-js-pure/stable/instance/repeat
  • core-js-pure/stable/instance/reverse
  • core-js-pure/stable/instance/slice
  • core-js-pure/stable/instance/some
  • core-js-pure/stable/instance/sort
  • core-js-pure/stable/instance/splice
  • core-js-pure/stable/instance/starts-with
  • core-js-pure/stable/instance/trim
  • core-js-pure/stable/instance/trim-end
  • core-js-pure/stable/instance/trim-left
  • core-js-pure/stable/instance/trim-right
  • core-js-pure/stable/instance/trim-start
  • core-js-pure/stable/instance/values
  • core-js-pure/stable/json/stringify
  • core-js-pure/stable/map
  • core-js-pure/stable/math/acosh
  • core-js-pure/stable/math/asinh
  • core-js-pure/stable/math/atanh
  • core-js-pure/stable/math/cbrt
  • core-js-pure/stable/math/clz32
  • core-js-pure/stable/math/cosh
  • core-js-pure/stable/math/expm1
  • core-js-pure/stable/math/fround
  • core-js-pure/stable/math/hypot
  • core-js-pure/stable/math/imul
  • core-js-pure/stable/math/log10
  • core-js-pure/stable/math/log1p
  • core-js-pure/stable/math/log2
  • core-js-pure/stable/math/sign
  • core-js-pure/stable/math/sinh
  • core-js-pure/stable/math/tanh
  • core-js-pure/stable/math/trunc
  • core-js-pure/stable/number/epsilon
  • core-js-pure/stable/number/is-finite
  • core-js-pure/stable/number/is-integer
  • core-js-pure/stable/number/is-nan
  • core-js-pure/stable/number/is-safe-integer
  • core-js-pure/stable/number/max-safe-integer
  • core-js-pure/stable/number/min-safe-integer
  • core-js-pure/stable/number/parse-float
  • core-js-pure/stable/number/parse-int
  • core-js-pure/stable/object/assign
  • core-js-pure/stable/object/create
  • core-js-pure/stable/object/define-properties
  • core-js-pure/stable/object/define-property
  • core-js-pure/stable/object/entries
  • core-js-pure/stable/object/freeze
  • core-js-pure/stable/object/from-entries
  • core-js-pure/stable/object/get-own-property-descriptor
  • core-js-pure/stable/object/get-own-property-descriptors
  • core-js-pure/stable/object/get-own-property-names
  • core-js-pure/stable/object/get-own-property-symbols
  • core-js-pure/stable/object/get-prototype-of
  • core-js-pure/stable/object/is
  • core-js-pure/stable/object/is-extensible
  • core-js-pure/stable/object/is-frozen
  • core-js-pure/stable/object/is-sealed
  • core-js-pure/stable/object/keys
  • core-js-pure/stable/object/prevent-extensions
  • core-js-pure/stable/object/seal
  • core-js-pure/stable/object/set-prototype-of
  • core-js-pure/stable/object/values
  • core-js-pure/stable/parse-float
  • core-js-pure/stable/parse-int
  • core-js-pure/stable/promise
  • core-js-pure/stable/queue-microtask
  • core-js-pure/stable/reflect/apply
  • core-js-pure/stable/reflect/construct
  • core-js-pure/stable/reflect/define-property
  • core-js-pure/stable/reflect/delete-property
  • core-js-pure/stable/reflect/get
  • core-js-pure/stable/reflect/get-own-property-descriptor
  • core-js-pure/stable/reflect/get-prototype-of
  • core-js-pure/stable/reflect/has
  • core-js-pure/stable/reflect/is-extensible
  • core-js-pure/stable/reflect/own-keys
  • core-js-pure/stable/reflect/prevent-extensions
  • core-js-pure/stable/reflect/set
  • core-js-pure/stable/reflect/set-prototype-of
  • core-js-pure/stable/set
  • core-js-pure/stable/set-immediate
  • core-js-pure/stable/set-interval
  • core-js-pure/stable/set-timeout
  • core-js-pure/stable/string/ends-with
  • core-js-pure/stable/string/from-code-point
  • core-js-pure/stable/string/includes
  • core-js-pure/stable/string/pad-start
  • core-js-pure/stable/string/raw
  • core-js-pure/stable/string/starts-with
  • core-js-pure/stable/symbol
  • core-js-pure/stable/symbol/async-iterator
  • core-js-pure/stable/symbol/for
  • core-js-pure/stable/symbol/has-instance
  • core-js-pure/stable/symbol/is-concat-spreadable
  • core-js-pure/stable/symbol/iterator
  • core-js-pure/stable/symbol/key-for
  • core-js-pure/stable/symbol/match
  • core-js-pure/stable/symbol/replace
  • core-js-pure/stable/symbol/search
  • core-js-pure/stable/symbol/species
  • core-js-pure/stable/symbol/split
  • core-js-pure/stable/symbol/to-primitive
  • core-js-pure/stable/symbol/to-string-tag
  • core-js-pure/stable/symbol/unscopables
  • core-js-pure/stable/url
  • core-js-pure/stable/url-search-params
  • core-js-pure/stable/weak-map
  • core-js-pure/stable/weak-set

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (core-js-pure) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

core-js

Modular standard library for JavaScript. Includes polyfills for ECMAScript up to 2019: promises, symbols, collections, iterators, typed arrays, many other features, ECMAScript proposals, some cross-platform WHATWG / W3C features and proposals like URL. You can load only required features or use it without global namespace pollution.

Example:

import 'core-js'; // <- at the top of your entry point

Array.from(new Set([1, 2, 3, 2, 1]));          // => [1, 2, 3]
[1, [2, 3], [4, [5]]].flat(2);                 // => [1, 2, 3, 4, 5]
Promise.resolve(32).then(x => console.log(x)); // => 32

You can load only required features:

import 'core-js/features/array/from'; // <- at the top of your entry point
import 'core-js/features/array/flat'; // <- at the top of your entry point
import 'core-js/features/set';        // <- at the top of your entry point
import 'core-js/features/promise';    // <- at the top of your entry point

Array.from(new Set([1, 2, 3, 2, 1]));          // => [1, 2, 3]
[1, [2, 3], [4, [5]]].flat(2);                 // => [1, 2, 3, 4, 5]
Promise.resolve(32).then(x => console.log(x)); // => 32

Or use it without global namespace pollution:

import from from 'core-js-pure/features/array/from';
import flat from 'core-js-pure/features/array/flat';
import Set from 'core-js-pure/features/set';
import Promise from 'core-js-pure/features/promise';

from(new Set([1, 2, 3, 2, 1]));                // => [1, 2, 3]
flat([1, [2, 3], [4, [5]]], 2);                // => [1, 2, 3, 4, 5]
Promise.resolve(32).then(x => console.log(x)); // => 32

It's a version without global namespace pollution (the third example), for more info see core-js documentation.