diff --git a/README.md b/README.md index bf3db9d08477..b703e650cc7b 100644 --- a/README.md +++ b/README.md @@ -28,12 +28,12 @@ --- -[*Example of usage*](https://is.gd/XD4mRe): +[*Example of usage*](https://tinyurl.com/2aj9lkwf): ```js import 'core-js/actual'; // <- at the top of your entry point Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3] -[1, 2, 3, 4, 5].groupBy(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } +[1, 2, 3, 4, 5].group(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } Promise.resolve(42).then(x => console.log(x)); // => 42 structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3]) queueMicrotask(() => console.log('called as microtask')); @@ -42,14 +42,14 @@ queueMicrotask(() => console.log('called as microtask')); *You can load only required features*: ```js import 'core-js/actual/array/from'; // <- at the top of your entry point -import 'core-js/actual/array/group-by'; // <- at the top of your entry point +import 'core-js/actual/array/group'; // <- at the top of your entry point import 'core-js/actual/set'; // <- at the top of your entry point import 'core-js/actual/promise'; // <- at the top of your entry point import 'core-js/actual/structured-clone'; // <- at the top of your entry point import 'core-js/actual/queue-microtask'; // <- at the top of your entry point Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3] -[1, 2, 3, 4, 5].groupBy(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } +[1, 2, 3, 4, 5].group(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } Promise.resolve(42).then(x => console.log(x)); // => 42 structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3]) queueMicrotask(() => console.log('called as microtask')); @@ -58,14 +58,14 @@ queueMicrotask(() => console.log('called as microtask')); *Or use it without global namespace pollution*: ```js import from from 'core-js-pure/actual/array/from'; -import groupBy from 'core-js-pure/actual/array/group-by'; +import group from 'core-js-pure/actual/array/group'; import Set from 'core-js-pure/actual/set'; import Promise from 'core-js-pure/actual/promise'; import structuredClone from 'core-js-pure/actual/structured-clone'; import queueMicrotask from 'core-js-pure/actual/queue-microtask'; from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3] -groupBy([1, 2, 3, 4, 5], it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } +group([1, 2, 3, 4, 5], it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } Promise.resolve(42).then(x => console.log(x)); // => 42 structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3]) queueMicrotask(() => console.log('called as microtask')); diff --git a/packages/core-js-bundle/README.md b/packages/core-js-bundle/README.md index 139a9aff7858..2a5e6e06942d 100644 --- a/packages/core-js-bundle/README.md +++ b/packages/core-js-bundle/README.md @@ -22,12 +22,12 @@ --- -[*Example of usage*](https://is.gd/XD4mRe): +[*Example of usage*](https://tinyurl.com/2aj9lkwf): ```js import 'core-js/actual'; // <- at the top of your entry point Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3] -[1, 2, 3, 4, 5].groupBy(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } +[1, 2, 3, 4, 5].group(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } Promise.resolve(42).then(x => console.log(x)); // => 42 structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3]) queueMicrotask(() => console.log('called as microtask')); @@ -36,14 +36,14 @@ queueMicrotask(() => console.log('called as microtask')); *You can load only required features*: ```js import 'core-js/actual/array/from'; // <- at the top of your entry point -import 'core-js/actual/array/group-by'; // <- at the top of your entry point +import 'core-js/actual/array/group'; // <- at the top of your entry point import 'core-js/actual/set'; // <- at the top of your entry point import 'core-js/actual/promise'; // <- at the top of your entry point import 'core-js/actual/structured-clone'; // <- at the top of your entry point import 'core-js/actual/queue-microtask'; // <- at the top of your entry point Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3] -[1, 2, 3, 4, 5].groupBy(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } +[1, 2, 3, 4, 5].group(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } Promise.resolve(42).then(x => console.log(x)); // => 42 structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3]) queueMicrotask(() => console.log('called as microtask')); @@ -52,14 +52,14 @@ queueMicrotask(() => console.log('called as microtask')); *Or use it without global namespace pollution*: ```js import from from 'core-js-pure/actual/array/from'; -import groupBy from 'core-js-pure/actual/array/group-by'; +import group from 'core-js-pure/actual/array/group'; import Set from 'core-js-pure/actual/set'; import Promise from 'core-js-pure/actual/promise'; import structuredClone from 'core-js-pure/actual/structured-clone'; import queueMicrotask from 'core-js-pure/actual/queue-microtask'; from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3] -groupBy([1, 2, 3, 4, 5], it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } +group([1, 2, 3, 4, 5], it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } Promise.resolve(42).then(x => console.log(x)); // => 42 structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3]) queueMicrotask(() => console.log('called as microtask')); diff --git a/packages/core-js-pure/README.md b/packages/core-js-pure/README.md index 82d2ecc3aa43..0e10b8a4926c 100644 --- a/packages/core-js-pure/README.md +++ b/packages/core-js-pure/README.md @@ -22,12 +22,12 @@ --- -[*Example of usage*](https://is.gd/XD4mRe): +[*Example of usage*](https://tinyurl.com/2aj9lkwf): ```js import 'core-js/actual'; // <- at the top of your entry point Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3] -[1, 2, 3, 4, 5].groupBy(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } +[1, 2, 3, 4, 5].group(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } Promise.resolve(42).then(x => console.log(x)); // => 42 structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3]) queueMicrotask(() => console.log('called as microtask')); @@ -36,14 +36,14 @@ queueMicrotask(() => console.log('called as microtask')); *You can load only required features*: ```js import 'core-js/actual/array/from'; // <- at the top of your entry point -import 'core-js/actual/array/group-by'; // <- at the top of your entry point +import 'core-js/actual/array/group'; // <- at the top of your entry point import 'core-js/actual/set'; // <- at the top of your entry point import 'core-js/actual/promise'; // <- at the top of your entry point import 'core-js/actual/structured-clone'; // <- at the top of your entry point import 'core-js/actual/queue-microtask'; // <- at the top of your entry point Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3] -[1, 2, 3, 4, 5].groupBy(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } +[1, 2, 3, 4, 5].group(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } Promise.resolve(42).then(x => console.log(x)); // => 42 structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3]) queueMicrotask(() => console.log('called as microtask')); @@ -52,14 +52,14 @@ queueMicrotask(() => console.log('called as microtask')); *Or use it without global namespace pollution*: ```js import from from 'core-js-pure/actual/array/from'; -import groupBy from 'core-js-pure/actual/array/group-by'; +import group from 'core-js-pure/actual/array/group'; import Set from 'core-js-pure/actual/set'; import Promise from 'core-js-pure/actual/promise'; import structuredClone from 'core-js-pure/actual/structured-clone'; import queueMicrotask from 'core-js-pure/actual/queue-microtask'; from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3] -groupBy([1, 2, 3, 4, 5], it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } +group([1, 2, 3, 4, 5], it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } Promise.resolve(42).then(x => console.log(x)); // => 42 structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3]) queueMicrotask(() => console.log('called as microtask')); diff --git a/packages/core-js/README.md b/packages/core-js/README.md index e4d1dc1533cb..b7aef267bb52 100644 --- a/packages/core-js/README.md +++ b/packages/core-js/README.md @@ -22,12 +22,12 @@ --- -[*Example of usage*](https://is.gd/XD4mRe): +[*Example of usage*](https://tinyurl.com/2aj9lkwf): ```js import 'core-js/actual'; // <- at the top of your entry point Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3] -[1, 2, 3, 4, 5].groupBy(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } +[1, 2, 3, 4, 5].group(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } Promise.resolve(42).then(x => console.log(x)); // => 42 structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3]) queueMicrotask(() => console.log('called as microtask')); @@ -36,14 +36,14 @@ queueMicrotask(() => console.log('called as microtask')); *You can load only required features*: ```js import 'core-js/actual/array/from'; // <- at the top of your entry point -import 'core-js/actual/array/group-by'; // <- at the top of your entry point +import 'core-js/actual/array/group'; // <- at the top of your entry point import 'core-js/actual/set'; // <- at the top of your entry point import 'core-js/actual/promise'; // <- at the top of your entry point import 'core-js/actual/structured-clone'; // <- at the top of your entry point import 'core-js/actual/queue-microtask'; // <- at the top of your entry point Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3] -[1, 2, 3, 4, 5].groupBy(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } +[1, 2, 3, 4, 5].group(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } Promise.resolve(42).then(x => console.log(x)); // => 42 structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3]) queueMicrotask(() => console.log('called as microtask')); @@ -52,14 +52,14 @@ queueMicrotask(() => console.log('called as microtask')); *Or use it without global namespace pollution*: ```js import from from 'core-js-pure/actual/array/from'; -import groupBy from 'core-js-pure/actual/array/group-by'; +import group from 'core-js-pure/actual/array/group'; import Set from 'core-js-pure/actual/set'; import Promise from 'core-js-pure/actual/promise'; import structuredClone from 'core-js-pure/actual/structured-clone'; import queueMicrotask from 'core-js-pure/actual/queue-microtask'; from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3] -groupBy([1, 2, 3, 4, 5], it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } +group([1, 2, 3, 4, 5], it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] } Promise.resolve(42).then(x => console.log(x)); // => 42 structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3]) queueMicrotask(() => console.log('called as microtask'));