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

Function join

packages/effect/src/Path.ts:500–519  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

498 },
499
500 join() {
501 if (arguments.length === 0) {
502 return "."
503 }
504 let joined
505 for (let i = 0; i < arguments.length; ++i) {
506 const arg = arguments[i]
507 if (arg.length > 0) {
508 if (joined === undefined) {
509 joined = arg
510 } else {
511 joined += "/" + arg
512 }
513 }
514 }
515 if (joined === undefined) {
516 return "."
517 }
518 return posixImpl.normalize(joined)
519 },
520
521 relative(from, to) {
522 if (from === to) return ""

Callers 10

Plugin.test.tsFile · 0.50
NodeSink.test.tsFile · 0.50
run.mjsFile · 0.50
writeTempTsconfigFunction · 0.50
compare.mjsFile · 0.50
materializeSuiteFunction · 0.50
writeTempTsconfigFunction · 0.50
createWorktreeFunction · 0.50
mainFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected