coerce.toString
This function converts the specified value to a string.
Syntax
coerce.toString(value)
Arguments
Argument |
Type |
Description |
---|---|---|
value |
Any |
The value to be coerced. |
Returns
Type |
Description |
---|---|
string |
The coerced string value. |
Examples
The function coerce.toString(123)
returns "123
".