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

Method pointerPrefix

packages/effect/src/encoding/JsonArray.ts:247–251  ·  view source on GitHub ↗
(length: number, ...rest: Array<string>)

Source from the content-addressed store, hash-verified

245 }
246
247 pointerPrefix(length: number, ...rest: Array<string>): string {
248 return JSON.stringify(
249 this.config.tokens.slice(0, length).concat(rest).map((token) => "/" + JsonPointer.escapeToken(token)).join("")
250 )
251 }
252
253 // Names the value being captured, for limit errors.
254 subject(): string {

Callers 3

subjectMethod · 0.95
stepMethod · 0.95
closeMethod · 0.95

Calls 3

sliceMethod · 0.80
joinMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected