← Back to release summary
Promise.try is a new static method. `Promise.try(f)` is shorthand for `new Promise(resolve => resolve(f()))`.
This is a TC39 proposal. See https://github.com/tc39/proposal-promise-try for motivation.
View on chromestatus.com