MCPcopy Create free account
hub / github.com/caesarHQ/textSQL / convertToTitleCase

Function convertToTitleCase

client/censusGPT/src/components/table.js:11–17  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

9 * @returns {string} - The converted value
10 */
11const convertToTitleCase = (value) => {
12 // Convert the table header values to title case
13 return value
14 .split('_')
15 .map((x) => x.charAt(0).toUpperCase() + x.slice(1))
16 .join(' ')
17}
18
19const formatNumber = (value, col) => {
20 if (value === null) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected