Merge pull request #1779 from leviding/patch-3
func.apply(context, args); // is same as using apply => Is a type error?
This commit is contained in:
commit
4939a18f24
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@ So these two calls are almost equivalent:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
func.call(context, ...args); // pass an array as list with spread syntax
|
func.call(context, ...args); // pass an array as list with spread syntax
|
||||||
func.apply(context, args); // is same as using apply
|
func.apply(context, args); // is same as using call
|
||||||
```
|
```
|
||||||
|
|
||||||
There's only a minor difference:
|
There's only a minor difference:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue