MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / fieldsToLines

Function fieldsToLines

src/utils/logEmbeds.js:44–46  ·  view source on GitHub ↗
(fields = [])

Source from the content-addressed store, hash-verified

42}
43
44export function fieldsToLines(fields = []) {
45 return fields.map((field) => formatLogLine(stripFieldLabel(field.name), field.value));
46}
47
48export function splitComparisonFields(fields = []) {
49 const comparison = { before: null, after: null, rest: [] };

Callers 1

createLogEmbedFunction · 0.90

Calls 2

formatLogLineFunction · 0.85
stripFieldLabelFunction · 0.85

Tested by

no test coverage detected