Merge pull request #3105 from Rnbsov/patch-73

This commit is contained in:
Ilya Kantor 2022-08-14 14:35:27 +03:00 committed by GitHub
commit fb76d3bfee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -218,7 +218,7 @@ alert(arr.pop()); // World (method works)
The same happens for an iterable: The same happens for an iterable:
```js ```js run
// assuming that range is taken from the example above // assuming that range is taken from the example above
let arr = Array.from(range); let arr = Array.from(range);
alert(arr); // 1,2,3,4,5 (array toString conversion works) alert(arr); // 1,2,3,4,5 (array toString conversion works)
@ -233,7 +233,7 @@ The optional second argument `mapFn` can be a function that will be applied to e
For instance: For instance:
```js ```js run
// assuming that range is taken from the example above // assuming that range is taken from the example above
// square each number // square each number