Merge pull request #2542 from LLyaudet/patch-4

1 typo in 06-function-object
This commit is contained in:
Ilya Kantor 2021-03-26 08:24:49 +03:00 committed by GitHub
commit 0dc1961648
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,4 +52,4 @@ function f(b) {
}
```
This `f` will be used in the next call, again return itself, so many times as needed. Then, when used as a number or a string -- the `toString` returns the `currentSum`. We could also use `Symbol.toPrimitive` or `valueOf` here for the conversion.
This `f` will be used in the next call, again return itself, as many times as needed. Then, when used as a number or a string -- the `toString` returns the `currentSum`. We could also use `Symbol.toPrimitive` or `valueOf` here for the conversion.