Sign in
apache
/
cordova-js
/
refs/heads/cb-4.2.3-node-modules-for-coho-only
/
.
/
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'
;
}