feige
2023-04-07 601c3e854e74a15932fb502145f48cc0a773a611
1
2
3
4
5
export function isPromise(maybePromise) {
    return (!!maybePromise &&
        !!maybePromise.then &&
        typeof maybePromise.then === 'function');
}