Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Distributive-Network/PythonMonkey
/ isError
Function
isError
python/pythonmonkey/builtin_modules/util.js:46–49 ·
view source on GitHub ↗
* @return {o is Error}
(e)
Source
from the content-addressed store, hash-verified
44
* @
return
{o is Error}
45
*/
46
function
isError(e)
47
{
48
return
objectToString(e) ===
'[object Error]'
|| e instanceof Error;
49
}
50
51
/**
52
* @
return
{o is Date}
Callers
1
formatValue
Function · 0.85
Calls
1
objectToString
Function · 0.85
Tested by
no test coverage detected