vike
Version:
The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.
8 lines (7 loc) • 314 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.objectEntriesForEach = objectEntriesForEach;
/** Same as Object.entries().forEach() but with type inference */
function objectEntriesForEach(obj, iterator) {
Object.entries(obj).forEach(([key, val]) => iterator(key, val));
}