3.37.0 • Published 9 days ago

core-js-pure v3.37.0

Weekly downloads
7,980,436
License
MIT
Repository
github
Last release
9 days ago

logo

fundraising PRs welcome version core-js-pure downloads

I highly recommend reading this: So, what's next?

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

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, Boosty, Bitcoin ( bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz ), Alipay.




Example of usage:

import 'core-js/actual';

Promise.resolve(42).then(it => console.log(it)); // => 42

Array.from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]

[1, 2].flatMap(it => [it, it]); // => [1, 1, 2, 2]

(function * (i) { while (true) yield i++; })(1)
  .drop(1).take(5)
  .filter(it => it % 2)
  .map(it => it ** 2)
  .toArray(); // => [9, 25]

structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])

You can load only required features:

import 'core-js/actual/promise';
import 'core-js/actual/set';
import 'core-js/actual/iterator';
import 'core-js/actual/array/from';
import 'core-js/actual/array/flat-map';
import 'core-js/actual/structured-clone';

Promise.resolve(42).then(it => console.log(it)); // => 42

Array.from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]

[1, 2].flatMap(it => [it, it]); // => [1, 1, 2, 2]

(function * (i) { while (true) yield i++; })(1)
  .drop(1).take(5)
  .filter(it => it % 2)
  .map(it => it ** 2)
  .toArray(); // => [9, 25]

structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])

Or use it without global namespace pollution:

import Promise from 'core-js-pure/actual/promise';
import Set from 'core-js-pure/actual/set';
import Iterator from 'core-js-pure/actual/iterator';
import from from 'core-js-pure/actual/array/from';
import flatMap from 'core-js-pure/actual/array/flat-map';
import structuredClone from 'core-js-pure/actual/structured-clone';

Promise.resolve(42).then(it => console.log(it)); // => 42

from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]

flatMap([1, 2], it => [it, it]); // => [1, 1, 2, 2]

Iterator.from(function * (i) { while (true) yield i++; }(1))
  .drop(1).take(5)
  .filter(it => it % 2)
  .map(it => it ** 2)
  .toArray(); // => [9, 25]

structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])

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

@babel/runtime-corejs3@pmmmwh/react-refresh-webpack-pluginapollo-graphqlkilli8n-react-native-fast-imagezwwl-image-editorformulatextareatui-image-editor-sivaztui-image-editor-sswkfw_vue_formspucomponents8pucomponents16gql_din_modmutasi-bca@ghost2019/cherry-markdowncogoportutilscope-spa@northek/react-json-schema-form-core@saaspe/componentssklif-ui-kitsklif-api@everything-registry/sub-chunk-1388p149-tablesklif-uidorajs-zi-yong-zhi-bo-yuandohundesign-system-fitbank-450cotrader-dex-sdkcontract-testing-librarydataormdiscord.js-bycondiscordjs-con-selfuimodyw-image-editorembark-scripts-runnertui-hvxtui-image-editor-bestsystui-image-editor-dctui-image-editor-hvxtui-image-editor-kdoctui-image-editor-pure-browsertui-image-editor-rechattui-image-editor-testneural_compressor_ext_lab_customizedneural_compressor_ext_lab_customized_2dskcoreneweslint-config-k3cman-angularnka-gantt-task-reactnkn-sdku-libraryeslint-config-lucas-silbernageleslint-plugin-templewallet-testcustome-package-amincustom-roulettecoopjsdecentraland-crypto-fetchcssesc-wbg@meysam213/react-leafletzubtesttoday@lowes-tech/bds-react@nobugzzz/rjsf-core@sjthc/esm-patient-registration-app@shangwenhe/form-core@polygon-hermez/vm@podlubnaja/ui-kithapi-mount@percent/percent-api-hooks@nodeberry/solidity-payment-processor@northek/rjsf-core@northrange/tui-image-editor@shardlabs/ethereumjs-vm@shardlabs/ethereumjs-vm-tmphappy-mobile@olympfin/olymp-swap-libreact-lightbox-pack-18support@shivarajapple/first-libraryreact-form-component-library@nomiclabs/ethereumjs-vmreact-native-dm-player@openmrs/esm-styleguidegraphql-type-typed-mapreact-ang-notifications-honey-comb-setup@sage-bionetworks/rjsf-core@neuraiproject/chains@leiyulf/gantt-task-react@lego-js/tests@leemonade/rjsf-core@lihancong/react-refresh-webpack-pluginpyreswap-sdkgrids-over-polygonreact-data-propsreact-customizable-autocomplete@openpolitica/matomo-next@sackmanson/quill-image-uploadergoogle-remake@nkn/ncp@pawjs/tapable@paypal/sdk-release-local@paypal/sdk-release@paypal/messaging-componentsreact-component-fresh-webpack-plugin
3.37.0

9 days ago

3.36.1

1 month ago

3.36.0

2 months ago

3.35.1

3 months ago

3.35.0

4 months ago

3.34.0

5 months ago

3.33.3

5 months ago

3.32.0

9 months ago

3.32.1

8 months ago

3.32.2

8 months ago

3.33.0

7 months ago

3.33.1

6 months ago

3.33.2

6 months ago

3.31.1

10 months ago

3.31.0

11 months ago

3.30.2

12 months ago

3.30.0

1 year ago

3.30.1

1 year ago

3.29.1

1 year ago

3.29.0

1 year ago

3.28.0

1 year ago

3.27.1

1 year ago

3.27.0

1 year ago

3.27.2

1 year ago

3.25.5

2 years ago

3.25.4

2 years ago

3.26.0

2 years ago

3.26.1

1 year ago

3.25.1

2 years ago

3.25.3

2 years ago

3.25.2

2 years ago

3.24.0

2 years ago

3.24.1

2 years ago

3.25.0

2 years ago

3.23.3

2 years ago

3.23.2

2 years ago

3.23.5

2 years ago

3.23.4

2 years ago

3.22.6

2 years ago

3.22.5

2 years ago

3.22.8

2 years ago

3.22.7

2 years ago

3.23.1

2 years ago

3.23.0

2 years ago

3.22.0

2 years ago

3.22.2

2 years ago

3.22.1

2 years ago

3.22.4

2 years ago

3.22.3

2 years ago

3.20.0

2 years ago

3.20.2

2 years ago

3.20.1

2 years ago

3.20.3

2 years ago

3.21.1

2 years ago

3.21.0

2 years ago

3.19.3

2 years ago

3.19.2

2 years ago

3.19.1

2 years ago

3.19.0

3 years ago

3.18.3

3 years ago

3.18.2

3 years ago

3.18.1

3 years ago

3.18.0

3 years ago

3.17.3

3 years ago

3.17.2

3 years ago

3.17.0

3 years ago

3.17.1

3 years ago

3.16.4

3 years ago

3.16.3

3 years ago

3.16.2

3 years ago

3.16.1

3 years ago

3.16.0

3 years ago

3.15.2

3 years ago

3.15.1

3 years ago

3.15.0

3 years ago

3.13.1

3 years ago

3.14.0

3 years ago

3.13.0

3 years ago

3.11.3

3 years ago

3.12.1

3 years ago

3.12.0

3 years ago

3.10.2

3 years ago

3.11.0

3 years ago

3.11.2

3 years ago

3.11.1

3 years ago

3.10.1

3 years ago

3.10.0

3 years ago

3.9.1

3 years ago

3.9.0

3 years ago

3.8.3

3 years ago

3.8.2

3 years ago

3.8.1

3 years ago

3.8.0

3 years ago

3.7.0

3 years ago

3.6.5

4 years ago

3.6.4

4 years ago

3.6.3

4 years ago

3.6.2

4 years ago

3.6.1

4 years ago

3.6.0

4 years ago

3.5.0

4 years ago

3.4.8

4 years ago

3.4.7

4 years ago

3.4.6

4 years ago

3.4.5

4 years ago

3.4.4

4 years ago

3.4.3

4 years ago

3.4.2

4 years ago

3.4.1

4 years ago

3.4.0

4 years ago

3.3.6

4 years ago

3.3.5

4 years ago

3.3.4

5 years ago

3.3.3

5 years ago

3.3.2

5 years ago

3.3.1

5 years ago

3.3.0

5 years ago

3.2.1

5 years ago

3.2.0

5 years ago

3.1.4

5 years ago

3.1.3

5 years ago

3.1.2

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

3.0.0-beta.20

5 years ago

3.0.0-beta.19

5 years ago

3.0.0-beta.18

5 years ago

3.0.0-beta.17

5 years ago

3.0.0-beta.16

5 years ago

3.0.0-beta.15

5 years ago

3.0.0-beta.14

5 years ago

3.0.0-beta.13

5 years ago

3.0.0-beta.12

5 years ago

3.0.0-beta.11

5 years ago

3.0.0-beta.10

5 years ago

3.0.0-beta.9

5 years ago

3.0.0-beta.8

5 years ago

3.0.0-beta.7

5 years ago

3.0.0-beta.6

5 years ago

3.0.0-beta.5

5 years ago

3.0.0-beta.4

5 years ago

3.0.0-beta.3

6 years ago

3.0.0-beta.2

6 years ago

3.0.0-beta.1

6 years ago

3.0.0-alpha.4

6 years ago

3.0.0-alpha.3

6 years ago

3.0.0-alpha.2

6 years ago

3.0.0-alpha.1

6 years ago

0.0.1

6 years ago