Skip to content

Commit bf779f9

Browse files
authored
Merge pull request javascript-tutorial#824 from maurodibert/patch-33
typo
2 parents 408ba7d + 7c97edc commit bf779f9

File tree

1 file changed

+1
-1
lines changed
  • 1-js/06-advanced-functions/09-call-apply-decorators

1 file changed

+1
-1
lines changed

1-js/06-advanced-functions/09-call-apply-decorators/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ If we look more closely, there's a minor difference between such uses of `call`
305305

306306
So, these calls complement each other. Where we expect an iterable, `call` works, where we expect an array-like, `apply` works.
307307

308-
And if `args` is both iterable and array-like, like a real array, then we technically could use any of them, but `apply` will probably be faster, because it's a single operation. Most JavaScript engines internally optimize is better than a pair `call + spread`.
308+
And if `args` is both iterable and array-like, like a real array, then we technically could use any of them, but `apply` will probably be faster, because it's a single operation. Most JavaScript engines internally optimize it better than a pair `call + spread`.
309309

310310
One of the most important uses of `apply` is passing the call to another function, like this:
311311

0 commit comments

Comments
 (0)