Skip to content

Commit a936c35

Browse files
committed
update the README
1 parent 73c837a commit a936c35

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828

2929
---
3030

31-
[*Example of usage*](https://is.gd/XD4mRe):
31+
[*Example of usage*](https://tinyurl.com/2aj9lkwf):
3232
```js
3333
import 'core-js/actual'; // <- at the top of your entry point
3434

3535
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
36-
[1, 2, 3, 4, 5].groupBy(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
36+
[1, 2, 3, 4, 5].group(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
3737
Promise.resolve(42).then(x => console.log(x)); // => 42
3838
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
3939
queueMicrotask(() => console.log('called as microtask'));
@@ -42,14 +42,14 @@ queueMicrotask(() => console.log('called as microtask'));
4242
*You can load only required features*:
4343
```js
4444
import 'core-js/actual/array/from'; // <- at the top of your entry point
45-
import 'core-js/actual/array/group-by'; // <- at the top of your entry point
45+
import 'core-js/actual/array/group'; // <- at the top of your entry point
4646
import 'core-js/actual/set'; // <- at the top of your entry point
4747
import 'core-js/actual/promise'; // <- at the top of your entry point
4848
import 'core-js/actual/structured-clone'; // <- at the top of your entry point
4949
import 'core-js/actual/queue-microtask'; // <- at the top of your entry point
5050

5151
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
52-
[1, 2, 3, 4, 5].groupBy(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
52+
[1, 2, 3, 4, 5].group(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
5353
Promise.resolve(42).then(x => console.log(x)); // => 42
5454
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
5555
queueMicrotask(() => console.log('called as microtask'));
@@ -58,14 +58,14 @@ queueMicrotask(() => console.log('called as microtask'));
5858
*Or use it without global namespace pollution*:
5959
```js
6060
import from from 'core-js-pure/actual/array/from';
61-
import groupBy from 'core-js-pure/actual/array/group-by';
61+
import group from 'core-js-pure/actual/array/group';
6262
import Set from 'core-js-pure/actual/set';
6363
import Promise from 'core-js-pure/actual/promise';
6464
import structuredClone from 'core-js-pure/actual/structured-clone';
6565
import queueMicrotask from 'core-js-pure/actual/queue-microtask';
6666

6767
from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
68-
groupBy([1, 2, 3, 4, 5], it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
68+
group([1, 2, 3, 4, 5], it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
6969
Promise.resolve(42).then(x => console.log(x)); // => 42
7070
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
7171
queueMicrotask(() => console.log('called as microtask'));

packages/core-js-bundle/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222

2323
---
2424

25-
[*Example of usage*](https://is.gd/XD4mRe):
25+
[*Example of usage*](https://tinyurl.com/2aj9lkwf):
2626
```js
2727
import 'core-js/actual'; // <- at the top of your entry point
2828

2929
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
30-
[1, 2, 3, 4, 5].groupBy(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
30+
[1, 2, 3, 4, 5].group(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
3131
Promise.resolve(42).then(x => console.log(x)); // => 42
3232
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
3333
queueMicrotask(() => console.log('called as microtask'));
@@ -36,14 +36,14 @@ queueMicrotask(() => console.log('called as microtask'));
3636
*You can load only required features*:
3737
```js
3838
import 'core-js/actual/array/from'; // <- at the top of your entry point
39-
import 'core-js/actual/array/group-by'; // <- at the top of your entry point
39+
import 'core-js/actual/array/group'; // <- at the top of your entry point
4040
import 'core-js/actual/set'; // <- at the top of your entry point
4141
import 'core-js/actual/promise'; // <- at the top of your entry point
4242
import 'core-js/actual/structured-clone'; // <- at the top of your entry point
4343
import 'core-js/actual/queue-microtask'; // <- at the top of your entry point
4444

4545
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
46-
[1, 2, 3, 4, 5].groupBy(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
46+
[1, 2, 3, 4, 5].group(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
4747
Promise.resolve(42).then(x => console.log(x)); // => 42
4848
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
4949
queueMicrotask(() => console.log('called as microtask'));
@@ -52,14 +52,14 @@ queueMicrotask(() => console.log('called as microtask'));
5252
*Or use it without global namespace pollution*:
5353
```js
5454
import from from 'core-js-pure/actual/array/from';
55-
import groupBy from 'core-js-pure/actual/array/group-by';
55+
import group from 'core-js-pure/actual/array/group';
5656
import Set from 'core-js-pure/actual/set';
5757
import Promise from 'core-js-pure/actual/promise';
5858
import structuredClone from 'core-js-pure/actual/structured-clone';
5959
import queueMicrotask from 'core-js-pure/actual/queue-microtask';
6060

6161
from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
62-
groupBy([1, 2, 3, 4, 5], it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
62+
group([1, 2, 3, 4, 5], it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
6363
Promise.resolve(42).then(x => console.log(x)); // => 42
6464
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
6565
queueMicrotask(() => console.log('called as microtask'));

packages/core-js-pure/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222

2323
---
2424

25-
[*Example of usage*](https://is.gd/XD4mRe):
25+
[*Example of usage*](https://tinyurl.com/2aj9lkwf):
2626
```js
2727
import 'core-js/actual'; // <- at the top of your entry point
2828

2929
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
30-
[1, 2, 3, 4, 5].groupBy(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
30+
[1, 2, 3, 4, 5].group(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
3131
Promise.resolve(42).then(x => console.log(x)); // => 42
3232
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
3333
queueMicrotask(() => console.log('called as microtask'));
@@ -36,14 +36,14 @@ queueMicrotask(() => console.log('called as microtask'));
3636
*You can load only required features*:
3737
```js
3838
import 'core-js/actual/array/from'; // <- at the top of your entry point
39-
import 'core-js/actual/array/group-by'; // <- at the top of your entry point
39+
import 'core-js/actual/array/group'; // <- at the top of your entry point
4040
import 'core-js/actual/set'; // <- at the top of your entry point
4141
import 'core-js/actual/promise'; // <- at the top of your entry point
4242
import 'core-js/actual/structured-clone'; // <- at the top of your entry point
4343
import 'core-js/actual/queue-microtask'; // <- at the top of your entry point
4444

4545
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
46-
[1, 2, 3, 4, 5].groupBy(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
46+
[1, 2, 3, 4, 5].group(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
4747
Promise.resolve(42).then(x => console.log(x)); // => 42
4848
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
4949
queueMicrotask(() => console.log('called as microtask'));
@@ -52,14 +52,14 @@ queueMicrotask(() => console.log('called as microtask'));
5252
*Or use it without global namespace pollution*:
5353
```js
5454
import from from 'core-js-pure/actual/array/from';
55-
import groupBy from 'core-js-pure/actual/array/group-by';
55+
import group from 'core-js-pure/actual/array/group';
5656
import Set from 'core-js-pure/actual/set';
5757
import Promise from 'core-js-pure/actual/promise';
5858
import structuredClone from 'core-js-pure/actual/structured-clone';
5959
import queueMicrotask from 'core-js-pure/actual/queue-microtask';
6060

6161
from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
62-
groupBy([1, 2, 3, 4, 5], it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
62+
group([1, 2, 3, 4, 5], it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
6363
Promise.resolve(42).then(x => console.log(x)); // => 42
6464
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
6565
queueMicrotask(() => console.log('called as microtask'));

packages/core-js/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222

2323
---
2424

25-
[*Example of usage*](https://is.gd/XD4mRe):
25+
[*Example of usage*](https://tinyurl.com/2aj9lkwf):
2626
```js
2727
import 'core-js/actual'; // <- at the top of your entry point
2828

2929
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
30-
[1, 2, 3, 4, 5].groupBy(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
30+
[1, 2, 3, 4, 5].group(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
3131
Promise.resolve(42).then(x => console.log(x)); // => 42
3232
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
3333
queueMicrotask(() => console.log('called as microtask'));
@@ -36,14 +36,14 @@ queueMicrotask(() => console.log('called as microtask'));
3636
*You can load only required features*:
3737
```js
3838
import 'core-js/actual/array/from'; // <- at the top of your entry point
39-
import 'core-js/actual/array/group-by'; // <- at the top of your entry point
39+
import 'core-js/actual/array/group'; // <- at the top of your entry point
4040
import 'core-js/actual/set'; // <- at the top of your entry point
4141
import 'core-js/actual/promise'; // <- at the top of your entry point
4242
import 'core-js/actual/structured-clone'; // <- at the top of your entry point
4343
import 'core-js/actual/queue-microtask'; // <- at the top of your entry point
4444

4545
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
46-
[1, 2, 3, 4, 5].groupBy(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
46+
[1, 2, 3, 4, 5].group(it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
4747
Promise.resolve(42).then(x => console.log(x)); // => 42
4848
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
4949
queueMicrotask(() => console.log('called as microtask'));
@@ -52,14 +52,14 @@ queueMicrotask(() => console.log('called as microtask'));
5252
*Or use it without global namespace pollution*:
5353
```js
5454
import from from 'core-js-pure/actual/array/from';
55-
import groupBy from 'core-js-pure/actual/array/group-by';
55+
import group from 'core-js-pure/actual/array/group';
5656
import Set from 'core-js-pure/actual/set';
5757
import Promise from 'core-js-pure/actual/promise';
5858
import structuredClone from 'core-js-pure/actual/structured-clone';
5959
import queueMicrotask from 'core-js-pure/actual/queue-microtask';
6060

6161
from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
62-
groupBy([1, 2, 3, 4, 5], it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
62+
group([1, 2, 3, 4, 5], it => it % 2); // => { 1: [1, 3, 5], 0: [2, 4] }
6363
Promise.resolve(42).then(x => console.log(x)); // => 42
6464
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
6565
queueMicrotask(() => console.log('called as microtask'));

0 commit comments

Comments
 (0)