• Collect strings from an array of ValueString. If any value is not a string, or is Bottom/Top, undefined is returned.

    Parameters

    • a: Value[]

      The array of Value to collect strings from.

    • withQuotes: boolean = false

      Whether to include the quotes in the returned strings.

    Returns undefined | string[]

    • An array of strings, or undefined if any value is not a string.