* Checks if parameter is a Promise (or thenable) object. * * @private * * @param {*} promise - Target `{}` to test * @returns {Boolean}
(promise)
| 283 | * @returns {Boolean} |
| 284 | */ |
| 285 | function isPromise (promise) { |
| 286 | return !!promise && typeof promise.then === 'function' |
| 287 | } |
| 288 | |
| 289 | /** |
| 290 | * Simple try/catch helper, if exists, returns result |