"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = isPromise;
function _typeof(obj) { Eif (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
/**
* @private isPromise
* @returns True when the value is a promise and false when
* the value is not a promise
*/
function isPromise(value) {
if (value !== null && _typeof(value) === 'object') {
return value && typeof value.then === 'function';
}
return false;
} |