Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sveltejs/svelte
/ is_promise
Function
is_promise
packages/svelte/src/internal/shared/utils.js:35–37 ·
view source on GitHub ↗
(value)
Source
from the content-addressed store, hash-verified
33
* @returns {value is PromiseLike<T>}
34
*/
35
export
function
is_promise(value) {
36
return
typeof value?.then ===
'function'
;
37
}
38
39
/** @param {Function} fn */
40
export
function
run(fn) {
Callers
1
await_block
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected