Merge pull request #1111 from maurodibert/patch-63

Update article.md
This commit is contained in:
Ilya Kantor 2019-07-05 15:59:19 +03:00 committed by GitHub
commit bd223137ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,7 @@ Even more, we can customize that behavior.
We can add a special static getter `Symbol.species` to the class. If exists, it should return the constructor that JavaScript will use internally to create new entities in `map`, `filter` and so on.
If we'd like built-in methods like `map`, `filter` will return regular arrays, we can return `Array` in `Symbol.species`, like here:
If we'd like built-in methods like `map` or `filter` to return regular arrays, we can return `Array` in `Symbol.species`, like here:
```js run
class PowerArray extends Array {