File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -189,12 +189,12 @@ The developer must choose between using Array.fromAsync and Promise.all (see
189
189
### Generic factory method
190
190
Array.fromAsync is a generic factory method. It does not require that its this
191
191
receiver be the Array constructor. fromAsync can be transferred to or inherited
192
- by any other constructor with a single numeric parameter . In that case, the
193
- final result will be the data structure created by that constructor (with 0 as
194
- its argument), and with each value yielded by the input being assigned to the
195
- data structure’s numeric properties. (Symbol.species is not involved at all.) If
196
- the this receiver is not a constructor, then fromAsync creates an array as
197
- usual. This matches the behavior of Array.from.
192
+ by any other constructor. In that case, the final result will be the data
193
+ structure created by that constructor (with no arguments), and with each value
194
+ yielded by the input being assigned to the data structure’s numeric properties.
195
+ (Symbol.species is not involved at all.) If the this receiver is not a
196
+ constructor, then fromAsync creates an array as usual. This matches the behavior
197
+ of Array.from.
198
198
199
199
``` js
200
200
async function * asyncGen (n ) {
You can’t perform that action at this time.
0 commit comments