Skip to content

Commit 3b9b0bf

Browse files
committed
fix some links
1 parent d3d49a2 commit 3b9b0bf

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
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'));
@@ -501,7 +501,7 @@ core-js(-pure)/es|stable|actual|full/object/define-setter
501501
core-js(-pure)/es|stable|actual|full/object/lookup-getter
502502
core-js(-pure)/es|stable|actual|full/object/lookup-setter
503503
```
504-
[*Examples*](t.ly/j1Uw):
504+
[*Examples*](is.gd/udzZq0):
505505
```js
506506
let foo = { q: 1, w: 2 };
507507
let bar = { e: 3, r: 4 };
@@ -738,7 +738,7 @@ core-js(-pure)/es|stable|actual|full/array/virtual/sort
738738
core-js(-pure)/es|stable|actual|full/array/virtual/splice
739739
core-js(-pure)/es|stable|actual|full/array/virtual/values
740740
```
741-
[*Examples*](t.ly/0qoU):
741+
[*Examples*](is.gd/i8mOSe):
742742
```js
743743
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
744744
Array.from({ 0: 1, 1: 2, 2: 3, length: 3 }); // => [1, 2, 3]
@@ -906,7 +906,7 @@ core-js/es|stable|actual|full/regexp/to-string
906906
core-js/es|stable|actual|full/escape
907907
core-js/es|stable|actual|full/unescape
908908
```
909-
[*Examples*](t.ly/ex9y):
909+
[*Examples*](is.gd/Q8eRhG):
910910
```js
911911
for (let value of 'a𠮷b') {
912912
console.log(value); // => 'a', '𠮷', 'b'
@@ -1700,7 +1700,7 @@ core-js/es|stable|actual|full/typed-array/to-locale-string
17001700
core-js/es|stable|actual|full/typed-array/to-string
17011701
core-js/es|stable|actual|full/typed-array/values
17021702
```
1703-
[*Examples*](t.ly/w98j):
1703+
[*Examples*](is.gd/Eo7ltU):
17041704
```js
17051705
new Int32Array(4); // => [0, 0, 0, 0]
17061706
new Uint8ClampedArray([1, 2, 3, 666]); // => [1, 2, 3, 255]
@@ -1805,7 +1805,7 @@ namespace JSON {
18051805
core-js(-pure)/es|stable|actual|full/json/stringify
18061806
core-js(-pure)/es|stable|actual|full/json/to-string-tag
18071807
```
1808-
[*Examples*](t.ly/YJeG):
1808+
[*Examples*](is.gd/izZqKn):
18091809
```js
18101810
JSON.stringify({ '𠮷': ['\uDF06\uD834'] }); // => '{"𠮷":["\\udf06\\ud834"]}'
18111811
```
@@ -2113,7 +2113,7 @@ core-js(-pure)/actual|full(/virtual)/array/find-last-index
21132113
core-js/actual|full/typed-array/find-last
21142114
core-js/actual|full/typed-array/find-last-index
21152115
```
2116-
[*Examples*](t.ly/TwKr):
2116+
[*Examples*](is.gd/GVqNFY):
21172117
```js
21182118
[1, 2, 3, 4].findLast(it => it % 2); // => 3
21192119
[1, 2, 3, 4].findLastIndex(it => it % 2); // => 2
@@ -2147,7 +2147,7 @@ core-js/actual|full/typed-array/to-sorted
21472147
core-js/actual|full/typed-array/to-spliced
21482148
core-js/actual|full/typed-array/with
21492149
```
2150-
[*Examples*](t.ly/wcvY):
2150+
[*Examples*](is.gd/tVkbY3):
21512151
```js
21522152
const sequence = [1, 2, 3];
21532153
sequence.toReversed(); // => [3, 2, 1]
@@ -2242,7 +2242,7 @@ core-js(-pure)/full/iterator/take
22422242
core-js(-pure)/full/iterator/to-array
22432243
core-js(-pure)/full/iterator/to-async
22442244
```
2245-
[Examples](t.ly/FEp1):
2245+
[Examples](is.gd/P7YLCq):
22462246
```js
22472247
[1, 2, 3, 4, 5, 6, 7].values()
22482248
.drop(1)
@@ -2328,7 +2328,7 @@ core-js/proposals/map-upsert-stage-2
23282328
core-js(-pure)/full/map/emplace
23292329
core-js(-pure)/full/weak-map/emplace
23302330
```
2331-
[*Examples*](t.ly/1PXW):
2331+
[*Examples*](is.gd/ty5I2v):
23322332
```js
23332333
const map = new Map([['a', 2]]);
23342334

@@ -2588,7 +2588,7 @@ core-js/proposals/array-filtering-stage-1
25882588
core-js(-pure)/full/array(/virtual)/filter-reject
25892589
core-js/full/typed-array/filter-reject
25902590
```
2591-
[*Examples*](t.ly/OOO2):
2591+
[*Examples*](is.gd/jJcoWw):
25922592
```js
25932593
[1, 2, 3, 4, 5].filterReject(it => it % 2); // => [2, 4]
25942594
````
@@ -2609,7 +2609,7 @@ core-js/proposals/array-unique
26092609
core-js(-pure)/full/array(/virtual)/unique-by
26102610
core-js/full/typed-array/unique-by
26112611
```
2612-
[*Examples*](t.ly/cEFZ):
2612+
[*Examples*](is.gd/lilNPu):
26132613
```js
26142614
[1, 2, 3, 2, 1].uniqueBy(); // [1, 2, 3]
26152615
@@ -2660,7 +2660,7 @@ core-js/proposals/number-range
26602660
core-js(-pure)/full/bigint/range
26612661
core-js(-pure)/full/number/range
26622662
```
2663-
[*Example*](t.ly/KvQ9):
2663+
[*Example*](is.gd/caCKSb):
26642664
```js
26652665
for (const i of Number.range(1, 10)) {
26662666
console.log(i); // => 1, 2, 3, 4, 5, 6, 7, 8, 9
@@ -2738,7 +2738,7 @@ class String {
27382738
core-js/proposals/string-cooked
27392739
core-js(-pure)/full/string/cooked
27402740
```
2741-
[*Example*](https://t.ly/OikE):
2741+
[*Example*](is.gd/7QPnss):
27422742
```js
27432743
function safePath(strings, ...subs) {
27442744
return String.cooked(strings, ...subs.map(sub => encodeURIComponent(sub)));
@@ -2818,7 +2818,7 @@ core-js(-pure)/full/object/iterate-keys
28182818
core-js(-pure)/full/object/iterate-values
28192819
core-js(-pure)/full/object/iterate-entries
28202820
```
2821-
[*Example*](t.ly/3pb0):
2821+
[*Example*](is.gd/Wnm2tD):
28222822
```js
28232823
const obj = { foo: 'bar', baz: 'blah' };
28242824
@@ -2894,7 +2894,7 @@ core-js/proposals/function-is-callable-is-constructor
28942894
core-js(-pure)/full/function/is-callable
28952895
core-js(-pure)/full/function/is-constructor
28962896
```
2897-
[*Examples*](t.ly/ai3f):
2897+
[*Examples*](is.gd/Kof1he):
28982898
```js
28992899
Function.isCallable(null); // => false
29002900
Function.isCallable({}); // => false
@@ -3154,7 +3154,7 @@ core-js(-pure)/stable|actual|full/url
31543154
core-js/stable|actual|full/url/to-json
31553155
core-js(-pure)/stable|actual|full/url-search-params
31563156
```
3157-
[*Examples*](t.ly/ZiA6):
3157+
[*Examples*](is.gd/AfIwve):
31583158
```js
31593159
const url = new URL('https://login:password@example.com:8080/foo/bar?a=1&b=2&a=3#fragment');
31603160

0 commit comments

Comments
 (0)