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

Function firstNonEmptyString

hotmail-utils.js:216–223  ·  view source on GitHub ↗
(values)

Source from the content-addressed store, hash-verified

214 }
215
216 function firstNonEmptyString(values) {
217 for (const value of values) {
218 if (value === undefined || value === null) continue;
219 const normalized = String(value).trim();
220 if (normalized) return normalized;
221 }
222 return '';
223 }
224
225 function normalizeMailAddress(rawValue) {
226 if (!rawValue) return '';

Callers 3

normalizeMailAddressFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected