MCPcopy Create free account
hub / github.com/Snaacky/theindex / parseDataToString

Function parseDataToString

components/data/DataItem.tsx:48–55  ·  view source on GitHub ↗
(
  input: boolean | string | string[] | undefined | null
)

Source from the content-addressed store, hash-verified

46}
47
48function parseDataToString(
49 input: boolean | string | string[] | undefined | null
50) {
51 if (typeof input !== 'string') {
52 return ''
53 }
54 return input
55}
56
57const DataItem: FC<Props> = ({ data, column, onChange }) => {
58 const isUndefined = typeof data === 'undefined' || data === null

Callers 1

DataItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected