โจ Meet Promise.try()
A new static method that wraps any callback in a Promise - handling both sync and async execution uniformly.
Unlike Promise.resolve(), it catches synchronous errors and provides cleaner syntax for unified error handling.
Start experimenting now ๐
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/try
