UNPKG

kenya-locations

Version:

A comprehensive and intuitive TypeScript package for working with Kenyan administrative divisions (counties, sub-counties, constituencies, and wards)

18 lines (17 loc) 305 B
function a(n, t) { return new Map(n.map((o) => [t(o), o])); } function s(n, t) { const o = /* @__PURE__ */ new Map(); for (const e of n) { const p = t(e); if (p === void 0) continue; const u = o.get(p); u ? u.push(e) : o.set(p, [e]); } return o; } export { s as a, a as b };