UNPKG

one

Version:

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

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