DEV Community


Discussion on: JavaScript: Handling errors like Go

jeyj0 profile image
Jannis Jorre

I got that - sorry if I wasn't clear enough, let me rephrase my question:

Is there a reason to go for a return that can be destructered as [err, value] over one that would be destructered with [value, err]?

I hope I made it understandable now.😇