package
Use async/await with `[err, result]` instead of try/catch.
npm install eresGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Use async/await with [err, result] instead of try/catch.
Instead of:
let result
try {
result = await fetch('https://...')
} catch (err) {
console.error('no workie')
}
render(result)You can now:
const [err, result] = await eres(fetch('https://...'))
if (err) return console.error('no workie')
render(result)Don't spend all the vertical space you get back in one place.
npm install eres