MCPcopy Index your code
hub / github.com/outerbase/studio / yb

Function yb

public/sqljs/sql-wasm.js:1083–1094  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

1081 }
1082 var rb;
1083 function yb(a, b) {
1084 for (var c = 0, d = a.length - 1; 0 <= d; d--) {
1085 var f = a[d];
1086 "." === f
1087 ? a.splice(d, 1)
1088 : ".." === f
1089 ? (a.splice(d, 1), c++)
1090 : c && (a.splice(d, 1), c--);
1091 }
1092 if (b) for (; c; c--) a.unshift("..");
1093 return a;
1094 }
1095 function z(a) {
1096 var b = "/" === a.charAt(0),
1097 c = "/" === a.substr(-1);

Callers 3

zFunction · 0.85
CbFunction · 0.85
WFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected