MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / isError2

Function isError2

out/cli.cjs:27504–27506  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

27502 return toStr(obj) === "[object RegExp]" && (!toStringTag2 || !(typeof obj === "object" && toStringTag2 in obj));
27503 }
27504 function isError2(obj) {
27505 return toStr(obj) === "[object Error]" && (!toStringTag2 || !(typeof obj === "object" && toStringTag2 in obj));
27506 }
27507 function isString2(obj) {
27508 return toStr(obj) === "[object String]" && (!toStringTag2 || !(typeof obj === "object" && toStringTag2 in obj));
27509 }

Calls 1

toStrFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…