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

Function normalizeLuckmailPurchases

luckmail-utils.js:143–148  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

141 }
142
143 function normalizeLuckmailPurchases(result) {
144 const list = Array.isArray(result?.purchases)
145 ? result.purchases
146 : (Array.isArray(result) ? result : []);
147 return list.map((item) => normalizeLuckmailPurchase(item));
148 }
149
150 function normalizeLuckmailPurchaseListPage(result = {}) {
151 const safeResult = result && typeof result === 'object' ? result : {};

Callers 1

Calls 1

Tested by

no test coverage detected