Methods
to-str($value, $only-ident) → {String}
Casts a value/literal to a string.
Parameters:
Name | Type | Description |
---|---|---|
$value |
* | the value to cast to string |
$only-ident |
Boolean | if true, only casts if value is an ident |
Returns:
the stringified value
- Type
- String
Example
to-str(medium)
=> 'medium'