You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my opinion, typing new Err(new Error('...')) or even Err(new Error('...')) feels kinda wrong and self-repetitive. Maybe it'll be a good idea to add a simple static method like this:
In my opinion, typing
new Err(new Error('...'))
or evenErr(new Error('...'))
feels kinda wrong and self-repetitive. Maybe it'll be a good idea to add a simple static method like this:This will help everyone to reduce the amount of boilerplate code
The text was updated successfully, but these errors were encountered: