UNPKG

vike

Version:

The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.

5 lines (4 loc) 191 B
/** Same as Object.entries().forEach() but with type inference */ export function objectEntriesForEach(obj, iterator) { Object.entries(obj).forEach(([key, val]) => iterator(key, val)); }