UNPKG

foxts

Version:

Opinionated collection of common TypeScript utils by @SukkaW

1 lines 139 B
function e(e){return e instanceof Headers?Object.fromEntries(e):null==e?{}:Object.fromEntries(new Headers(e))}export{e as headersToObject};