forked from Fediversity/fediversity.eu
6 lines
155 B
JavaScript
6 lines
155 B
JavaScript
|
export function isPromise(maybePromise) {
|
||
|
return (!!maybePromise &&
|
||
|
!!maybePromise.then &&
|
||
|
typeof maybePromise.then === 'function');
|
||
|
}
|