blob: 7ef9d60b6a80948e0cbc5ebd4554961d547265c5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
function isPromise (value: any) {
return value && typeof value.then === 'function'
}
function isCatchable (value: any) {
return value && typeof value.catch === 'function'
}
export {
isPromise,
isCatchable
}
|