• Returns the length of the given string

    Parameters

    • Optionaltext: null | string

      the source string to check

    Returns number

    the length of the given string