@ceeblue/web-utils
    Preparing search index...

    Function toStringArray

    • Converts a string or array of strings into a normalized string array. Empty string values are filtered out. When no non-empty value remains, defaultValue is returned (defaults to []).

      Parameters

      • value: string | string[] | undefined

        The string or array of strings to normalize.

      • defaultValue: string[] = []

        Returned when value is empty or contains only empty strings.

      Returns string[]

      A normalized array of strings.