Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/node-js-libs/node.io
/ trim_slash
Function
trim_slash
lib/node.io/io.js:96–101 ·
view source on GitHub ↗
(path)
Source
from the content-addressed store, hash-verified
94
95
//Trim trailing slash
96
var
trim_slash =
function
(path) {
97
if
(path[path.length - 1] ===
'/'
) {
98
path = path.substr(0, path.length - 1);
99
}
100
return
path;
101
};
102
path = trim_slash(path);
103
104
//Store full paths
Callers
1
io.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected