MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / firstNonEmptyString

Function firstNonEmptyString

luckmail-utils.js:15–22  ·  view source on GitHub ↗
(values)

Source from the content-addressed store, hash-verified

13 const LUCKMAIL_EMAIL_TYPES = ['self_built', 'ms_imap', 'ms_graph', 'google_variant'];
14
15 function firstNonEmptyString(values) {
16 for (const value of values) {
17 if (value === undefined || value === null) continue;
18 const normalized = String(value).trim();
19 if (normalized) return normalized;
20 }
21 return '';
22 }
23
24 function normalizeText(value) {
25 return String(value || '')

Callers 5

normalizeLuckmailTagFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected