Determines whether the given value is a non-empty string.
This function first checks if the input is a string using isString.
If it is not a string, the function returns false.
If it is a string, it then checks whether the string contains any non-empty content.
By default, the function trims the string before checking its length,
which means strings containing only whitespace (e.g., " ") will be considered empty.
This behavior can be controlled using the trim parameter.
Determines whether the given value is a non-empty string.
This function first checks if the input is a string using isString. If it is not a string, the function returns
false
. If it is a string, it then checks whether the string contains any non-empty content.By default, the function trims the string before checking its length, which means strings containing only whitespace (e.g.,
" "
) will be considered empty. This behavior can be controlled using thetrim
parameter.