MCPcopy Create free account
hub / github.com/Cphayim/ombro / createThrowErrorFunction

Function createThrowErrorFunction

packages/fetchin/src/utils.ts:17–21  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

15}
16
17export function createThrowErrorFunction(message: string) {
18 return () => {
19 throw new Error(createErrorMessage(message))
20 }
21}
22
23export function hasOwnProperty(context: object, prop: string) {
24 return Object.prototype.hasOwnProperty.call(context, prop)

Callers

nothing calls this directly

Calls 1

createErrorMessageFunction · 0.85

Tested by

no test coverage detected