You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -2993,7 +2997,7 @@ They don't alter the runtime behavior of the code, but they can be used to make
2993
2997
### Stringifiable
2994
2998
This type describes any value that either is a string itself or can be converted to a string.
2995
2999
To be considered stringifiable, the object needs to have a `toString()` method that returns a string.
2996
-
Most primitives have this method, but something like undefined or null does not (they can only be used in the `String()` constructor or string interpolation).
3000
+
Most primitives have this method, but something like undefined or null does not.
2997
3001
Having this method allows not just explicit conversion by using `.toString()`, but also implicit conversion by passing it into the `String()` constructor or interpolating it in a template literal string.
2998
3002
2999
3003
<details><summary><b>Example - click to view</b></summary>
0 commit comments