Merge pull request #3046 from joaquinelio/patch-15

typo?
This commit is contained in:
Ilya Kantor 2022-06-12 23:59:55 +02:00 committed by GitHub
commit 7bb6066eb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,7 +104,7 @@ if (zero) { // zero is true, because it's an object
} }
``` ```
On the other hand, using the same functions `String/Number/Boolean` without `new` is totally same and useful thing. They convert a value to the corresponding type: to a string, a number, or a boolean (primitive). On the other hand, using the same functions `String/Number/Boolean` without `new` is totally fine and useful thing. They convert a value to the corresponding type: to a string, a number, or a boolean (primitive).
For example, this is entirely valid: For example, this is entirely valid: