UNPKG

one

Version:

One is a new React Framework that makes Vite serve both native and web.

12 lines (11 loc) 289 B
function evictOldest(map, threshold, count) { if (map.size > threshold) { const iter = map.keys(); for (let i = 0; i < count; i++) { const key = iter.next().value; if (key) map.delete(key); } } } export { evictOldest }; //# sourceMappingURL=evictOldest.mjs.map