3333import ' core-js/actual' ; // <- at the top of your entry point
3434
3535Array .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] }
3737Promise .resolve (42 ).then (x => console .log (x)); // => 42
3838structuredClone (new Set ([1 , 2 , 3 ])); // => new Set([1, 2, 3])
3939queueMicrotask (() => console .log (' called as microtask' ));
@@ -42,14 +42,14 @@ queueMicrotask(() => console.log('called as microtask'));
4242* You can load only required features* :
4343``` js
4444import ' 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
4646import ' core-js/actual/set' ; // <- at the top of your entry point
4747import ' core-js/actual/promise' ; // <- at the top of your entry point
4848import ' core-js/actual/structured-clone' ; // <- at the top of your entry point
4949import ' core-js/actual/queue-microtask' ; // <- at the top of your entry point
5050
5151Array .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] }
5353Promise .resolve (42 ).then (x => console .log (x)); // => 42
5454structuredClone (new Set ([1 , 2 , 3 ])); // => new Set([1, 2, 3])
5555queueMicrotask (() => 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
6060import 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' ;
6262import Set from ' core-js-pure/actual/set' ;
6363import Promise from ' core-js-pure/actual/promise' ;
6464import structuredClone from ' core-js-pure/actual/structured-clone' ;
6565import queueMicrotask from ' core-js-pure/actual/queue-microtask' ;
6666
6767from (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] }
6969Promise .resolve (42 ).then (x => console .log (x)); // => 42
7070structuredClone (new Set ([1 , 2 , 3 ])); // => new Set([1, 2, 3])
7171queueMicrotask (() => console .log (' called as microtask' ));
@@ -501,7 +501,7 @@ core-js(-pure)/es|stable|actual|full/object/define-setter
501501core-js(-pure)/es|stable|actual|full/object/lookup-getter
502502core-js(-pure)/es|stable|actual|full/object/lookup-setter
503503```
504- [ * Examples* ] ( t.ly/j1Uw ) :
504+ [ * Examples* ] ( is.gd/udzZq0 ) :
505505``` js
506506let foo = { q: 1 , w: 2 };
507507let bar = { e: 3 , r: 4 };
@@ -738,7 +738,7 @@ core-js(-pure)/es|stable|actual|full/array/virtual/sort
738738core-js(-pure)/es|stable|actual|full/array/virtual/splice
739739core-js(-pure)/es|stable|actual|full/array/virtual/values
740740```
741- [*Examples*](t.ly/0qoU ):
741+ [*Examples*](is.gd/i8mOSe ):
742742```js
743743Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
744744Array.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
906906core-js/es|stable|actual|full/escape
907907core-js/es|stable|actual|full/unescape
908908```
909- [*Examples*](t.ly/ex9y ):
909+ [*Examples*](is.gd/Q8eRhG ):
910910```js
911911for (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
17001700core-js/es|stable|actual|full/typed-array/to-string
17011701core-js/es|stable|actual|full/typed-array/values
17021702```
1703- [*Examples*](t . ly / w98j ):
1703+ [*Examples*](is . gd / Eo7ltU ):
17041704```js
17051705new Int32Array(4); // => [0, 0, 0, 0]
17061706new Uint8ClampedArray([1, 2, 3, 666]); // => [1, 2, 3, 255]
@@ -1805,7 +1805,7 @@ namespace JSON {
18051805core- js (- pure)/ es| stable| actual| full/ json/ stringify
18061806core- js (- pure)/ es| stable| actual| full/ json/ to- string- tag
18071807` ` `
1808- [*Examples*](t.ly/YJeG ):
1808+ [*Examples*](is.gd/izZqKn ):
18091809` ` ` js
18101810JSON .stringify ({ ' 𠮷' : [' \uDF06\uD834 ' ] }); // => '{"𠮷":["\\udf06\\ud834"]}'
18111811` ` `
@@ -2113,7 +2113,7 @@ core-js(-pure)/actual|full(/virtual)/array/find-last-index
21132113core-js/actual|full/typed-array/find-last
21142114core-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
21472147core- js/ actual| full/ typed- array/ to- spliced
21482148core- js/ actual| full/ typed- array/ with
21492149` ` `
2150- [*Examples*](t.ly/wcvY ):
2150+ [*Examples*](is.gd/tVkbY3 ):
21512151` ` ` js
21522152const sequence = [1 , 2 , 3 ];
21532153sequence .toReversed (); // => [3, 2, 1]
@@ -2242,7 +2242,7 @@ core-js(-pure)/full/iterator/take
22422242core-js(-pure)/full/iterator/to-array
22432243core-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
23282328core- js (- pure)/ full/ map/ emplace
23292329core- js (- pure)/ full/ weak- map/ emplace
23302330` ` `
2331- [*Examples*](t.ly/1PXW ):
2331+ [*Examples*](is.gd/ty5I2v ):
23322332` ` ` js
23332333const map = new Map ([[' a' , 2 ]]);
23342334
@@ -2588,7 +2588,7 @@ core-js/proposals/array-filtering-stage-1
25882588core- js (- pure)/ full/ array (/ virtual)/ filter- reject
25892589core- 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
26092609core-js(-pure)/full/array(/virtual)/unique-by
26102610core-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
26602660core-js(-pure)/full/bigint/range
26612661core-js(-pure)/full/number/range
26622662` ` `
2663- [* Example* ](t . ly / KvQ9 ):
2663+ [* Example* ](is . gd / caCKSb ):
26642664` ` ` js
26652665for (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 {
27382738core-js/proposals/string-cooked
27392739core-js(-pure)/full/string/cooked
27402740` ` `
2741- [* Example* ](https : // t.ly/OikE ):
2741+ [* Example* ](is . gd / 7QPnss ):
27422742` ` ` js
27432743function safePath(strings, ...subs) {
27442744 return String.cooked(strings, ...subs.map(sub => encodeURIComponent(sub)));
@@ -2818,7 +2818,7 @@ core-js(-pure)/full/object/iterate-keys
28182818core-js(-pure)/full/object/iterate-values
28192819core-js(-pure)/full/object/iterate-entries
28202820` ` `
2821- [* Example* ](t . ly / 3pb0 ):
2821+ [* Example* ](is . gd / Wnm2tD ):
28222822` ` ` js
28232823const obj = { foo: 'bar', baz: 'blah' };
28242824
@@ -2894,7 +2894,7 @@ core-js/proposals/function-is-callable-is-constructor
28942894core-js(-pure)/full/function/is-callable
28952895core-js(-pure)/full/function/is-constructor
28962896` ` `
2897- [* Examples* ](t . ly / ai3f ):
2897+ [* Examples* ](is . gd / Kof1he ):
28982898` ` ` js
28992899Function.isCallable(null); // => false
29002900Function.isCallable({}); // => false
@@ -3154,7 +3154,7 @@ core-js(-pure)/stable|actual|full/url
31543154core-js/stable|actual|full/url/to-json
31553155core-js(-pure)/stable|actual|full/url-search-params
31563156```
3157- [*Examples*](t.ly/ZiA6 ):
3157+ [*Examples*](is.gd/AfIwve ):
31583158```js
31593159const url = new URL(' https: // login:password@example.com:8080/foo/bar?a=1&b=2&a=3#fragment');
31603160
0 commit comments