mirror of
https://github.com/github/codeql-action.git
synced 2026-01-02 04:30:14 +08:00
4 lines
147 B
JavaScript
4 lines
147 B
JavaScript
module.exports = function isPromise (maybePromise) {
|
|
return !!maybePromise && !!maybePromise.then && (typeof maybePromise.then === 'function')
|
|
}
|