isPromise function source types.isPromise(obj) Returns true if obj is a Promise. Returns {Boolean}: true if the object is a Promise.