mirror of
https://github.com/Azure/k8s-set-context.git
synced 2026-06-19 19:42:16 +08:00
6 lines
155 B
JavaScript
6 lines
155 B
JavaScript
export function isPromise(maybePromise) {
|
|
return (!!maybePromise &&
|
|
!!maybePromise.then &&
|
|
typeof maybePromise.then === 'function');
|
|
}
|