Skip to content

Type String

The type::string function converts a value to a string. If the input is not already a string, it will be coerced into a string representation.

Syntax

type::string(<value>)

Parameters

  • value: The input value to convert to a string.

Returns

  • String: The string representation of the input value.

Example

Try it out below!
type::string(123)

This function is useful for ensuring values are in string form before concatenation, comparison, or logging.