3 ms·
Hah, thought this looked familiar… I had a similar idea back in 2017 and published a little 5-line library to get this type of syntax ([err, result] for async):
by timwis 2y ago
Hah, thought this looked familiar… I had a similar idea back in 2017 and published a little 5-line library to get this type of syntax ([err, result] for async): https://github.com/timwis/eres https://github.com/timwis/eres