UNPKG

349 BJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.isPromise = isPromise;
7/** @license MIT License (c) copyright 2010-2016 original author or authors */
8/** @author Brian Cavalier */
9/** @author John Hann */
10
11function isPromise(p) {
12 return p !== null && typeof p === 'object' && typeof p.then === 'function';
13}
\No newline at end of file