MCPcopy Create free account
hub / github.com/Effect-TS/effect / function

Function function

packages/effect/src/Function.ts:113–117  ·  view source on GitHub ↗
(this: any)

Source from the content-addressed store, hash-verified

111} = function(arity, body) {
112 if (typeof arity === "function") {
113 return function(this: any) {
114 return arity(arguments)
115 ? body.apply(this, arguments as any)
116 : ((self: any) => body(self, ...arguments)) as any
117 }
118 }
119
120 switch (arity) {

Callers

nothing calls this directly

Calls 1

bodyFunction · 0.50

Tested by

no test coverage detected