@@ -126,13 +126,13 @@ queueMicrotask(() => console.log('called as microtask'));
126126 - [ ` Symbol.prototype.description ` ] ( #symbolprototypedescription )
127127 - [ Well-formed ` JSON.stringify ` ] ( #well-formed-jsonstringify )
128128 - [ Stage 3 proposals] ( #stage-3-proposals )
129+ - [ ` Array.fromAsync ` ] ( #arrayfromasync )
129130 - [ ` Array ` grouping] ( #array-grouping )
130131 - [ Change ` Array ` by copy] ( #change-array-by-copy )
131132 - [ Stage 2 proposals] ( #stage-2-proposals )
132133 - [ ` Iterator ` helpers] ( #iterator-helpers )
133134 - [ New ` Set ` methods] ( #new-set-methods )
134135 - [ ` Map.prototype.emplace ` ] ( #mapprototypeemplace )
135- - [ ` Array.fromAsync ` ] ( #arrayfromasync )
136136 - [ ` Array.isTemplateObject ` ] ( #arrayistemplateobject )
137137 - [ ` Symbol.{ asyncDispose, dispose } ` for ` using ` statement] ( #symbol-asyncdispose-dispose--for-using-statement )
138138 - [ ` Symbol.metadataKey ` for decorators metadata proposal] ( #symbolmetadatakey-for-decorators-metadata-proposal )
@@ -2103,6 +2103,22 @@ core-js/proposals/well-formed-stringify
21032103` ` ` js
21042104core-js(-pure)/stage/3
21052105` ` `
2106+ ##### [` Array.fromAsync` ](https: // github.com/tc39/proposal-array-from-async)[⬆](#index)
2107+ Modules [` esnext.array.from-async` ](https: // github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.array.from-async.js).
2108+ ` ` ` js
2109+ class Array {
2110+ static fromAsync(asyncItems: AsyncIterable | Iterable | ArrayLike, mapfn?: (value: any, index: number) => any, thisArg?: any): Array;
2111+ }
2112+ ` ` `
2113+ [* CommonJS entry points: * ](#commonjs- api)
2114+ ` ` ` js
2115+ core-js/proposals/array-from-async-stage-2
2116+ core-js(-pure)/full/array/from-async
2117+ ` ` `
2118+ [* Example* ](https: // goo.gl/Jt7SsD):
2119+ ` ` ` js
2120+ await Array.fromAsync((async function * (){ yield * [1, 2, 3] })(), i => i * i); // => [1, 4, 9]
2121+ ` ` `
21062122##### [` Array` grouping](https: // github.com/tc39/proposal-array-grouping)[⬆](#index)
21072123Modules [` esnext.array.group` ](https: // github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.array.group.js), [`esnext.array.group-to-map`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.array.group-to-map.js).
21082124` ` ` js
@@ -2343,22 +2359,6 @@ map.emplace('b', { update: it => it ** 2, insert: () => 3}); // => 3
23432359
23442360console .log (map); // => Map { 'a': 4, 'b': 3 }
23452361` ` `
2346- ##### [` Array .fromAsync ` ](https://github.com/tc39/proposal-array-from-async)[⬆](#index)
2347- Modules [` esnext .array .from - async ` ](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.array.from-async.js).
2348- ` ` ` js
2349- class Array {
2350- static fromAsync (asyncItems: AsyncIterable | Iterable | ArrayLike, mapfn?: (value : any , index : number ) => any, thisArg?: any): Array ;
2351- }
2352- ` ` `
2353- [*CommonJS entry points:*](#commonjs-api)
2354- ` ` ` js
2355- core- js/ proposals/ array- from- async - stage- 2
2356- core- js (- pure)/ full/ array/ from- async
2357- ` ` `
2358- [*Example*](https://goo.gl/Jt7SsD):
2359- ` ` ` js
2360- await Array .fromAsync ((async function * (){ yield * [1 , 2 , 3 ] })(), i => i * i); // => [1, 4, 9]
2361- ` ` `
23622362##### [` Array .isTemplateObject ` ](https://github.com/tc39/proposal-array-is-template-object)[⬆](#index)
23632363Module [` esnext .array .is - template- object` ](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.array.is-template-object.js)
23642364` ` ` js
0 commit comments