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