MCPcopy Create free account
hub / github.com/codler/react-ga4 / format

Function format

src/format.ts:46–62  ·  view source on GitHub ↗
(
  s: string = "",
  titleCase: boolean = true,
  redactingEmail: boolean = true
)

Source from the content-addressed store, hash-verified

44}
45
46export default function format(
47 s: string = "",
48 titleCase: boolean = true,
49 redactingEmail: boolean = true
50): string {
51 let _str = s || "";
52
53 if (titleCase) {
54 _str = toTitleCase(s);
55 }
56
57 if (redactingEmail) {
58 _str = redactEmail(_str);
59 }
60
61 return _str;
62}

Callers 1

GA4Class · 0.85

Calls 2

toTitleCaseFunction · 0.85
redactEmailFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…