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

Function isCheckboxTrue

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

Source from the content-addressed store, hash-verified

21
22const TRUE_VALUES = new Set(['true', 'x', '1', 'yes', 'checked'])
23export function isCheckboxTrue(cell: string): boolean {
24 return TRUE_VALUES.has(cell.trim().toLowerCase())
25}
26
27function cell(row: DbRow, fieldId: string): string {
28 return row.cells[fieldId] ?? ''

Callers 5

matchesRuleFunction · 0.85
compareByFieldFunction · 0.85
DatabaseBoardViewFunction · 0.85
toggleCheckboxFunction · 0.85
CellFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected