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

Function normalizeBooleanMap

icloud-utils.js:57–70  ·  view source on GitHub ↗
(rawValue = {})

Source from the content-addressed store, hash-verified

55 }
56
57 function normalizeBooleanMap(rawValue = {}) {
58 if (!rawValue || typeof rawValue !== 'object' || Array.isArray(rawValue)) {
59 return {};
60 }
61
62 return Object.entries(rawValue).reduce((result, [key, value]) => {
63 const normalizedKey = String(key || '').trim().toLowerCase();
64 if (!normalizedKey) {
65 return result;
66 }
67 result[normalizedKey] = Boolean(value);
68 return result;
69 }, {});
70 }
71
72 function toNormalizedEmailSet(values = []) {
73 if (values instanceof Set) {

Callers 6

toNormalizedEmailSetFunction · 0.85
getPersistedAliasStateFunction · 0.85
setStateFunction · 0.85
getManualAliasUsageMapFunction · 0.85
getPreservedAliasMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected