is_email

This function determines whether the provided value is of type str and contains an email address.

This function does not generate a change.

Function

is_email(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 and contains an email address, else false.

Example

This code shows some return values for is_email():

[
    is_email( 'info@thingsdb.io' ),
    is_email( 'test' ),
];

Return value in JSON format

[
    true,
    false
]