Merge pull request #1477 from hrodward/patch-10

Update article.md
This commit is contained in:
Ilya Kantor 2019-10-19 20:24:41 +03:00 committed by GitHub
commit 6634181d6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -372,7 +372,7 @@ hash(1, 2);
The trick is called *method borrowing*.
We take (borrow) a join method from a regular array `[].join`. And use `[].join.call` to run it in the context of `arguments`.
We take (borrow) a join method from a regular array (`[].join`) and use `[].join.call` to run it in the context of `arguments`.
Why does it work?