Skip to content

cupertino-files / normalizeCellInput

Function: normalizeCellInput()

normalizeCellInput(value): TaggedCellInput

Defined in: src/tst/tables.ts:453

Put a CellInput in tagged form, or throw.

null and undefined mean "empty" — clearing a cell by writing nothing is the natural reading, and it is what clearCell does anyway. NaN is refused: it is almost always a failed parse upstream, and storing it produces a cell the apps render as an error with no clue why.

Parameters

value

CellInput | undefined

Returns

TaggedCellInput

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.