• Returns whether the given string is not empty

    Parameters

    • Optionaltext: null | string

      the string to check

    Returns boolean

    whether the given string is not empty

    isNotEmpty('foobar');    // true