MCPcopy
hub / github.com/fanmingming/live / isPromise

Function isPromise

m3u8/vue.js:84–90  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

82 }
83
84 function isPromise (val) {
85 return (
86 isDef(val) &&
87 typeof val.then === 'function' &&
88 typeof val.catch === 'function'
89 )
90 }
91
92 /**
93 * Convert a value to a string that is actually rendered.

Callers 2

invokeWithErrorHandlingFunction · 0.85
resolveAsyncComponentFunction · 0.85

Calls 1

isDefFunction · 0.85

Tested by

no test coverage detected