MCPcopy Create free account
hub / github.com/DFin/palaeograph / sanitizeHeader

Function sanitizeHeader

src/csvLoader.js:3–6  ·  view source on GitHub ↗
(header)

Source from the content-addressed store, hash-verified

1import Papa from "papaparse";
2
3function sanitizeHeader(header) {
4 if (typeof header !== "string") return "";
5 return header.trim();
6}
7
8export function coerceNumber(value) {
9 if (value === null || value === undefined) return null;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected