foxts
Version:
Opinionated collection of common TypeScript utils by @SukkaW
1 lines • 139 B
JavaScript
function e(e){return e instanceof Headers?Object.fromEntries(e):null==e?{}:Object.fromEntries(new Headers(e))}export{e as headersToObject};
Opinionated collection of common TypeScript utils by @SukkaW