isPromise.js 141 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 'use strict'; const internals = {}; module.exports = function (promise) { return !!promise && typeof promise.then === 'function'; };