Sign in
cobalt
/
cobalt
/
5ac52c483642b4db38dbd342c3c4978c98971a6e
/
.
/
src
/
cobalt
/
debug
/
remote
/
devtools
/
node_modules
/
is-promise
/
index.js
blob: ca2444c6f69540f83504b8f54f4518af0ffc4cd5 [
file
] [
log
] [
blame
]
module
.
exports
=
isPromise
;
function
isPromise
(
obj
)
{
return
!!
obj
&&
(
typeof
obj
===
'object'
||
typeof
obj
===
'function'
)
&&
typeof
obj
.
then
===
'function'
;
}