(cell: string)
| 9 | |
| 10 | /** Split a multiSelect cell ("a, b") into values. Option values never contain commas. */ |
| 11 | export function splitMultiSelect(cell: string): string[] { |
| 12 | return cell |
| 13 | .split(',') |
| 14 | .map((s) => s.trim()) |
| 15 | .filter((s) => s.length > 0) |
| 16 | } |
| 17 | |
| 18 | export function joinMultiSelect(values: string[]): string { |
| 19 | return values.join(MULTISELECT_SEP) |
no outgoing calls
no test coverage detected