"use strict"; module.exports = function isPromise(value) { // NOTE: This is basically a test for Promises/A+, not ES6 Promises specifically return (typeof value?.then === "function"); };