Sign in
cobalt
/
cobalt
/
da45c04cd0b2a42259750905712e02601644c062
/
.
/
third_party
/
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'
;
}