frontend/.pnpm-store/v3/files/68/35fea10438fa6e959d6eed5501a682c83dd36f204f0bf4eed37a85702e7f2dac1a7e7f353ce628b19237c617ad57cf8b78d6561306758c5412c7c9e2059f82

10 lines
236 B
Plaintext

import { isFunction } from "./isFunction";
/**
* Tests to see if the object is "thennable".
* @param value the object to test
*/
export function isPromise(value: any): value is PromiseLike<any> {
return isFunction(value?.then);
}