commit
ab068342c6
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ alert(filteredArr); // 10, 50
|
||||||
alert(filteredArr.isEmpty()); // false
|
alert(filteredArr.isEmpty()); // false
|
||||||
```
|
```
|
||||||
|
|
||||||
Please note a very interesting thing. Built-in methods like `filter`, `map` and others -- return new objects of exactly the inherited type `PowerArray`. Their internal implementation uses object `constructor` property for that.
|
Please note a very interesting thing. Built-in methods like `filter`, `map` and others -- return new objects of exactly the inherited type `PowerArray`. Their internal implementation uses the object's `constructor` property for that.
|
||||||
|
|
||||||
In the example above,
|
In the example above,
|
||||||
```js
|
```js
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue