MCPcopy Index your code
hub / github.com/Effect-TS/effect / join

Function join

packages/platform/src/internal/path.ts:257–276  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

255 },
256
257 join() {
258 if (arguments.length === 0) {
259 return "."
260 }
261 let joined
262 for (let i = 0; i < arguments.length; ++i) {
263 const arg = arguments[i]
264 if (arg.length > 0) {
265 if (joined === undefined) {
266 joined = arg
267 } else {
268 joined += "/" + arg
269 }
270 }
271 }
272 if (joined === undefined) {
273 return "."
274 }
275 return posixImpl.normalize(joined)
276 },
277
278 relative(from, to) {
279 if (from === to) return ""

Callers 1

Sink.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected