/**
 * Some additional helper string functions.
 */ param commaSeparatedList return export function commaseparatedToArrayString ( commaSeparatedList ) { if ( ! commaSeparatedList ) { return '[]' ; } const values = commaSeparatedList . split ( ',' ) ; let result = '[' ; for ( let i = 0 ; i < values . length ; i ++ ) { if ( i > 0 ) { result = result + ', ' ; } result = result + '"' + values [ i ] + '"' ; } result = result + ']' ; return result ; } param values return export function toArrayString ( values ) { if ( ! values ) { return '[]' ; } let result = '[' ; for ( let i = 0 ; i < values . length ; i ++ ) { if ( i > 0 ) { result = result + ', ' ; } result = result + '"' + values [ i ] + '"' ; } result = result + ']' ; return result ; }