routing-controllers
Version:
Create structured, declarative and beautifully organized class-based controllers with heavy decorators usage for Express / Koa using TypeScript.
11 lines • 365 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isPromiseLike = void 0;
/**
* Checks if given value is a Promise-like object.
*/
function isPromiseLike(arg) {
return arg != null && typeof arg === 'object' && typeof arg.then === 'function';
}
exports.isPromiseLike = isPromiseLike;
//# sourceMappingURL=isPromiseLike.js.map