☰
Debian Codegraph
@
368-1
367-1
/
/
node
/
rxjs
/
src
/
internal
/
util
/
isPromise.ts
☽
☼
node/rxjs/src/internal/util/isPromise.ts
code
plain
raw
Apache-2.0
2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors; Ben Lesh; Microsoft Corporation.
debian/copyright
1
import { isFunction } from "./isFunction";
2
3
/**
4
* Tests to see if the object is "thennable".
5
* @param value the object to test
6
*/
7
export function isPromise(value: any): value is PromiseLike<any> {
8
return isFunction(value?.then);
9
}