This is the ThingsDB documentation for version v0, click here for the latest version!

is_str

This function determines whether the provided value is of type str.

The value is not explicitly checked for valid UTF-8 characters, use is_utf8() if you want to check for valid UTF-8 data.

This function does not generate an event.

Function

is_str(value)

Arguments

Argument Type Description
value any (required) The value to be tested.

Return value

Returns true if the given value is of type str, else false.

Example

This code shows some return values for is_utf8():

[
    is_str( 'ԉ' ),
    is_str( 'pi' ),
];

Return value in JSON format

[
    true,
    true
]