3.18.1 • Published 2 days ago

core-js v3.18.1

Weekly downloads
33,471,386
License
MIT
Repository
github
Last release
2 days ago

core-js

Open Collective version core-js downloads core-js-pure downloads tests eslint

Modular standard library for JavaScript. Includes polyfills for ECMAScript up to 2021: 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.

As advertising: the author is looking for a good job -)

core-js@3, babel and a look into the future

Raising funds

core-js isn't backed by a company, so the future of this project depends on you. Become a sponsor or a backer if you are interested in core-js: Open Collective, Patreon, PayPal, Bitcoin ( bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz ).




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 global version (first 2 examples), for more info see core-js documentation.

babel-runtime@storybook/theming@storybook/addons@storybook/api@storybook/channel-postmessage@storybook/router@storybook/channels@storybook/components@storybook/core-events@storybook/client-loggerbabel-polyfillbabel-register@storybook/react@storybook/node-logger@storybook/ui@storybook/addon-actions@storybook/client-apireact-app-polyfilllazy-universal-dotenv@babel/polyfillapollo-envsimplebar@storybook/postinstall@storybook/addon-backgrounds@storybook/addon-viewport@storybook/addon-docs@storybook/addon-knobs@storybook/addon-links@storybook/source-loader@storybook/semver@angular-devkit/build-angular@babel/runtime-corejs2@weirwoodai/parse-xbrlzzzb-gridmy-component-test1taco-zhixingchenhongtestfb-react-image-gridele-rw-uirsw-ui@vdjurdjevic/generator-react-appaudio-recorder-and-uploader@chenwl/cv-uimy-sirius-component-librarycsmf-cli-helperagape-form-builderceshinavauctic-uielmec-atlantis-wikiemopmktevui_test@fatihkydev/gatsby-source-datocmsdz-userj-crud-vue3gguge-vue-componentsilham-component-libraryiview-form-design-zxxlince-simpledetailngtest1ls-vue-projmace-json-schemadanyarubcovh5app-uigdwebgdwebeditplatem-unitedmis-potal-navigation@bigpicturemedical/medkit-ts@airhead/enkeltauthckaixat-comgissarathe-autocompletevue-builder-templatesvprivacy-holdervue-jj-inputvue-layout-ryxiproj-chatxiaodishu-vue-uiz-ui-tablevue3-draggable2vue3-ts-form-1vue-tagtree1vue-tagtree3vue-tagtree4vue-scichart-examplevue-svg-icon-pluginvue-short-cut-testv-builder-templatebpmn-editor-wjbpmn-editor-wujintab-table-datapageraop-navigation@hollysys-mirco-front-end/app-demo1@michael-bille/demo-components@kuyun/layout@kuyun/test@hewok/ec-component-icon@muros-ct/angular-plotly@kuyun/ku-element-uiwebprojectmobi
3.18.1

2 days ago

3.18.0

9 days ago

3.17.3

19 days ago

3.17.2

26 days ago

3.17.0

27 days ago

3.17.1

27 days ago

3.16.4

1 month ago

3.16.3

1 month ago

3.16.2

1 month ago

3.16.1

2 months ago

3.16.0

2 months ago

3.15.2

3 months ago

3.15.1

3 months ago

3.15.0

3 months ago

3.13.1

4 months ago

3.14.0

4 months ago

3.13.0

4 months ago

3.12.1

5 months ago

3.12.0

5 months ago

3.11.3

5 months ago

3.10.2

5 months ago

3.11.0

5 months ago

3.11.2

5 months ago

3.11.1

5 months ago

3.10.1

6 months ago

3.10.0

6 months ago

3.9.1

7 months ago

3.9.0

7 months ago

3.8.3

8 months ago

3.8.2

9 months ago

3.8.1

10 months ago

2.6.12

10 months ago

3.8.0

10 months ago

3.7.0

11 months ago

3.6.5

1 year ago

3.6.4

2 years ago

3.6.3

2 years ago

3.6.2

2 years ago

3.6.1

2 years ago

3.6.0

2 years ago

3.5.0

2 years ago

2.6.11

2 years ago

3.4.8

2 years ago

3.4.7

2 years ago

3.4.6

2 years ago

3.4.4

2 years ago

3.4.5

2 years ago

3.4.3

2 years ago

3.4.2

2 years ago

3.4.1

2 years ago

3.4.0

2 years ago

3.3.6

2 years ago

3.3.5

2 years ago

3.3.4

2 years ago

3.3.3

2 years ago

3.3.2

2 years ago

3.3.1

2 years ago

3.3.0

2 years ago

2.6.10

2 years ago

3.2.1

2 years ago

3.2.0

2 years ago

3.1.4

2 years ago

3.1.3

2 years ago

2.6.9

2 years ago

3.1.2

2 years ago

2.6.8

2 years ago

3.1.1

2 years ago

2.6.7

2 years ago

3.1.0

2 years ago

2.6.6

2 years ago

3.0.1

2 years ago

3.0.0

3 years ago

3.0.0-beta.20

3 years ago

3.0.0-beta.19

3 years ago

3.0.0-beta.18

3 years ago

3.0.0-beta.17

3 years ago

3.0.0-beta.16

3 years ago

2.6.5

3 years ago

3.0.0-beta.15

3 years ago

2.6.4

3 years ago

3.0.0-beta.14

3 years ago

3.0.0-beta.13

3 years ago

3.0.0-beta.12

3 years ago

3.0.0-beta.11

3 years ago

2.6.3

3 years ago

3.0.0-beta.10

3 years ago

3.0.0-beta.9

3 years ago

3.0.0-beta.8

3 years ago

2.6.2

3 years ago

3.0.0-beta.7

3 years ago

3.0.0-beta.6

3 years ago

2.6.1

3 years ago

3.0.0-beta.5

3 years ago

2.6.0

3 years ago

3.0.0-beta.4

3 years ago

3.0.0-beta.3

3 years ago

3.0.0-beta.2

3 years ago

2.5.7

3 years ago

3.0.0-beta.1

3 years ago

2.5.6

3 years ago

2.5.5

3 years ago

3.0.0-alpha.4

3 years ago

3.0.0-alpha.3

4 years ago

3.0.0-alpha.2

4 years ago

2.5.4

4 years ago

3.0.0-alpha.1

4 years ago

2.5.3

4 years ago

2.5.2

4 years ago

2.5.1

4 years ago

2.5.0

4 years ago

2.4.1

5 years ago

1.2.7

5 years ago

2.4.0

5 years ago

2.3.0

5 years ago

2.2.2

5 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.5

6 years ago

2.1.4

6 years ago

2.1.3

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

2.0.0-beta.2

6 years ago

2.0.0-beta

6 years ago

2.0.0-alpha

6 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.9.18

6 years ago

0.9.17

6 years ago

0.9.16

6 years ago

0.9.15

6 years ago

0.9.14

6 years ago

0.9.13

6 years ago

0.9.12

6 years ago

0.9.11

6 years ago

0.9.10

6 years ago

0.9.9

6 years ago

0.9.8

6 years ago

0.9.7

6 years ago

0.9.6

6 years ago

0.9.5

6 years ago

0.9.4

6 years ago

0.9.3

6 years ago

0.9.2

6 years ago

0.9.1

6 years ago

0.9.0

6 years ago

0.8.4

6 years ago

0.8.3

6 years ago

0.8.2

6 years ago

0.8.1

6 years ago

0.8.0

6 years ago

0.7.2

7 years ago

0.7.1

7 years ago

0.7.0

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.4

7 years ago

0.5.3

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.10

7 years ago

0.4.9

7 years ago

0.4.8

7 years ago

0.4.7

7 years ago

0.4.6

7 years ago

0.4.5

7 years ago

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.1

8 years ago