* Is the specified argument a javascript promise? * * @method isPromise * @param {unknown} obj An argument of any type. * @returns {obj is Promise} TRUE if the arg is a Promise, FALSE if not
(obj)
| 788 | * @returns {obj is Promise} TRUE if the arg is a Promise, FALSE if not |
| 789 | */ |
| 790 | static isPromise(obj) { |
| 791 | return Object.prototype.toString.call(obj) === '[object Promise]'; |
| 792 | } |
| 793 | |
| 794 | /** |
| 795 | * Returns a string of flags for regular expression `re`. |
no outgoing calls
no test coverage detected