Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

parse json?

const x = await fetch(...); await x.json();

"intercept" code that runs before every request?

const withAuth = (res, options) => fetch(res, { ... do stuff here });



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: