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

Function normalizeLuckmailPurchaseId

luckmail-utils.js:164–170  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

162 }
163
164 function normalizeLuckmailPurchaseId(value) {
165 const numeric = Number(value);
166 if (!Number.isFinite(numeric) || numeric <= 0) {
167 return '';
168 }
169 return String(Math.floor(numeric));
170 }
171
172 function normalizeLuckmailUsedPurchases(rawValue = {}) {
173 if (!rawValue || typeof rawValue !== 'object' || Array.isArray(rawValue)) {

Calls

no outgoing calls

Tested by

no test coverage detected