MCPcopy 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 */
46function isError(e)
47{
48 return objectToString(e) === '[object Error]' || e instanceof Error;
49}
50
51/**
52 * @return {o is Date}

Callers 1

formatValueFunction · 0.85

Calls 1

objectToStringFunction · 0.85

Tested by

no test coverage detected