13 lines
349 B
JavaScript
13 lines
349 B
JavaScript
|
'use strict';
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.isPromise = isPromise;
|
||
|
/** @license MIT License (c) copyright 2010-2016 original author or authors */
|
||
|
/** @author Brian Cavalier */
|
||
|
/** @author John Hann */
|
||
|
|
||
|
function isPromise(p) {
|
||
|
return p !== null && typeof p === 'object' && typeof p.then === 'function';
|
||
|
}
|