@@ -97,13 +97,14 @@ Promise.resolve(32).then(x => console.log(x)); // => 32
97
97
- [ ECMAScript proposals] ( #ecmascript-proposals )
98
98
- [ Stage 4 proposals] ( #stage-4-proposals )
99
99
- [ Stage 3 proposals] ( #stage-3-proposals )
100
+ - [ ` Array ` grouping] ( #array-grouping )
100
101
- [ ` Array ` find from last] ( #array-find-from-last )
101
102
- [ Stage 2 proposals] ( #stage-2-proposals )
102
103
- [ ` Iterator ` helpers] ( #iterator-helpers )
103
104
- [ New ` Set ` methods] ( #new-set-methods )
104
105
- [ ` Map.prototype.emplace ` ] ( #mapprototypeemplace )
105
- - [ ` Array ` grouping] ( #array-grouping )
106
106
- [ Change ` Array ` by copy] ( #change-array-by-copy )
107
+ - [ ` Array.fromAsync ` ] ( #arrayfromasync )
107
108
- [ ` Array.isTemplateObject ` ] ( #arrayistemplateobject )
108
109
- [ ` Symbol.{ asyncDispose, dispose } ` for ` using ` statement] ( #symbol-asyncdispose-dispose--for-using-statement )
109
110
- [ ` Symbol.metadata ` for decorators proposal] ( #symbolmetadata-for-decorators-proposal )
@@ -112,7 +113,6 @@ Promise.resolve(32).then(x => console.log(x)); // => 32
112
113
- [ New collections methods] ( #new-collections-methods )
113
114
- [ ` .of ` and ` .from ` methods on collection constructors] ( #of-and-from-methods-on-collection-constructors )
114
115
- [ ` compositeKey ` and ` compositeSymbol ` ] ( #compositekey-and-compositesymbol )
115
- - [ ` Array.fromAsync ` ] ( #arrayfromasync )
116
116
- [ ` Array ` filtering] ( #array-filtering )
117
117
- [ ` Array ` deduplication] ( #array-deduplication )
118
118
- [ Getting last item from ` Array ` ] ( #getting-last-item-from-array )
@@ -2205,6 +2205,22 @@ const correctionNeeded = [1, 1, 3];
2205
2205
correctionNeeded .with (1 , 2 ); // => [1, 2, 3]
2206
2206
correctionNeeded; // => [1, 1, 3]
2207
2207
` ` ` `
2208
+ ##### [` Array.fromAsync` ](https: // github.com/tc39/proposal-array-from-async)[⬆](#index)
2209
+ Modules [` esnext.array.from-async` ](https: // github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.array.from-async.js).
2210
+ ` ` ` js
2211
+ class Array {
2212
+ static fromAsync(asyncItems: AsyncIterable | Iterable | ArrayLike, mapfn?: (value: any, index: number) => any, thisArg?: any): Array;
2213
+ }
2214
+ ` ` `
2215
+ [* CommonJS entry points: * ](#commonjs- api)
2216
+ ` ` ` js
2217
+ core-js/proposals/array-from-async
2218
+ core-js(-pure)/features/array/from-async
2219
+ ` ` `
2220
+ [* Example* ](https: // goo.gl/Jt7SsD):
2221
+ ` ` ` js
2222
+ await Array.fromAsync((async function * (){ yield * [1, 2, 3] })(), i => i * i); // => [1, 4, 9]
2223
+ ` ` `
2208
2224
##### [` Array.isTemplateObject` ](https: // github.com/tc39/proposal-array-is-template-object)[⬆](#index)
2209
2225
Module [` esnext.array.is-template-object` ](https: // github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.array.is-template-object.js)
2210
2226
` ` ` js
@@ -2422,22 +2438,6 @@ console.log(compositeSymbol(1, a) === compositeSymbol(1, a)); // => true
2422
2438
console.log(compositeSymbol(1, a, 2, b) === compositeSymbol(1, a, 2, b)); // => true
2423
2439
console.log(compositeSymbol(a, a) === compositeSymbol(a, a)); // => true
2424
2440
` ` `
2425
- ##### [` Array.fromAsync` ](https: // github.com/tc39/proposal-array-from-async)[⬆](#index)
2426
- Modules [` esnext.array.from-async` ](https: // github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.array.from-async.js).
2427
- ` ` ` js
2428
- class Array {
2429
- static fromAsync(asyncItems: AsyncIterable | Iterable | ArrayLike, mapfn?: (value: any, index: number) => any, thisArg?: any): Array;
2430
- }
2431
- ` ` `
2432
- [* CommonJS entry points: * ](#commonjs- api)
2433
- ` ` ` js
2434
- core-js/proposals/array-from-async
2435
- core-js(-pure)/features/array/from-async
2436
- ` ` `
2437
- [* Example* ](https: // goo.gl/Jt7SsD):
2438
- ` ` ` js
2439
- await Array.fromAsync((async function * (){ yield * [1, 2, 3] })(), i => i * i); // => [1, 4, 9]
2440
- ` ` `
2441
2441
##### [Array filtering](https: // github.com/tc39/proposal-array-filtering)[⬆](#index)
2442
2442
Modules [` esnext.array.filter-reject` ](https: // github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.array.filter-reject.js) and [`esnext.typed-array.filter-reject`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.typed-array.filter-reject.js).
2443
2443
` ` ` js
0 commit comments