3.10.1 • Published 1 month ago

core-js v3.10.1

Weekly downloads
33,471,386
License
MIT
Repository
github
Last release
1 month ago

core-js

Sponsors on Open Collective Backers on Open Collective Gitter version npm 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 on Open Collective or on Patreon if you are interested in core-js.




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/router@storybook/client-logger@storybook/components@storybook/channels@storybook/core-events@storybook/theming@storybook/api@storybook/addons@storybook/channel-postmessagereact-app-polyfill@babel/polyfillbabel-polyfillbabel-registerlazy-universal-dotenv@storybook/node-logger@storybook/react@storybook/client-api@storybook/ui@storybook/addon-actionssimplebar-reactapollo-env@babel/runtime-corejs2@angular-devkit/build-angular@storybook/addon-knobs@storybook/addon-links@storybook/postinstall@storybook/source-loader@storybook/semver@storybook/addon-viewport@storybook/addon-docs@storybook/addon-backgroundsfb-react-image-gridele-rw-uirsw-ui@vdjurdjevic/generator-react-appzzy-multiple-choicezzyunhewylgiaozzz-libzzz-lib-projectaudio-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-uiwebprojectmobivue-svgicon-wqq
3.10.1

1 month ago

3.10.0

2 months ago

3.9.1

3 months ago

3.9.0

3 months ago

3.8.3

4 months ago

3.8.2

4 months ago

3.8.1

5 months ago

2.6.12

6 months ago

3.8.0

6 months ago

3.7.0

6 months ago

3.6.5

1 year ago

3.6.4

1 year ago

3.6.3

1 year ago

3.6.2

1 year ago

3.6.1

1 year ago

3.6.0

1 year ago

3.5.0

1 year ago

2.6.11

1 year ago

3.4.8

1 year ago

3.4.7

1 year ago

3.4.6

1 year ago

3.4.4

1 year ago

3.4.5

1 year ago

3.4.3

1 year ago

3.4.2

1 year 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

2 years ago

3.0.0-beta.20

2 years ago

3.0.0-beta.19

2 years ago

3.0.0-beta.18

2 years ago

3.0.0-beta.17

2 years ago

3.0.0-beta.16

2 years ago

2.6.5

2 years ago

3.0.0-beta.15

2 years ago

2.6.4

2 years ago

3.0.0-beta.14

2 years ago

3.0.0-beta.13

2 years ago

3.0.0-beta.12

2 years ago

3.0.0-beta.11

2 years ago

2.6.3

2 years ago

3.0.0-beta.10

2 years ago

3.0.0-beta.9

2 years ago

3.0.0-beta.8

2 years ago

2.6.2

2 years ago

3.0.0-beta.7

2 years ago

3.0.0-beta.6

2 years ago

2.6.1

2 years ago

3.0.0-beta.5

2 years ago

2.6.0

2 years ago

3.0.0-beta.4

2 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

3 years ago

3.0.0-alpha.2

3 years ago

2.5.4

3 years ago

3.0.0-alpha.1

3 years ago

2.5.3

3 years ago

2.5.2

3 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

5 years ago

2.2.0

5 years ago

2.1.5

5 years ago

2.1.4

5 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

2.0.0-beta.2

5 years ago

2.0.0-beta

5 years ago

2.0.0-alpha

5 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

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.10

6 years ago

0.4.9

6 years ago

0.4.8

6 years ago

0.4.7

6 years ago

0.4.6

6 years ago

0.4.5

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.1

8 years ago