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:
Ilya Kantor 2020-03-21 09:14:27 +03:00 committed by GitHub
commit 4939a18f24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: