eres
eres copied to clipboard
Use async/await with [err, result] instead of try/catch.
Results
2
eres issues
Sort by
recently updated
recently updated
newest added
Instead of this: ```js const [e, res] = await eres(dnsLookup(domain)) if (e) throw e const {address, family} = res ``` You could do this: ```js const [e, {address, family}] =...
Just like https://github.com/sindresorhus/pify does, or maybe it is a better fit for 0x00A/asde.