| 741 | * @returns {boolean} True if the value is thenable. |
| 742 | */ |
| 743 | const isThenable = value => { |
| 744 | return value && typeof value === "object" && typeof value.then === "function"; |
| 745 | }; |
| 746 | |
| 747 | /** |
| 748 | * Creates and returns a function which, when called, will resolve or reject |