• Returns an empty value if the given text is undefined

    Parameters

    • Optionaltext: null | string

      the text to check

    Returns string

    an empty value if the given text is undefined

    defaultString(undefined);    // ''
    defaultString(null); // ''