GoScrobble/web/node_modules/yargs/build/lib/is-promise.js

10 lines
284 B
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isPromise = void 0;
function isPromise(maybePromise) {
return !!maybePromise &&
!!maybePromise.then &&
(typeof maybePromise.then === 'function');
}
exports.isPromise = isPromise;