MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / splitMultiSelect

Function splitMultiSelect

packages/shared-domain/src/database-transforms.ts:11–16  ·  view source on GitHub ↗
(cell: string)

Source from the content-addressed store, hash-verified

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

Callers 5

matchesRuleFunction · 0.85
DatabaseBoardViewFunction · 0.85
commitCellFunction · 0.85
SelectCellFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected