Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/scality/cloudserver
/ capitalize
Function
capitalize
lib/api/website.js:108–113 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
106
}
107
108
function
capitalize(str) {
109
if
(!str || typeof str !==
'string'
) {
110
return
str;
111
}
112
return
str.charAt(0).toUpperCase() + str.slice(1);
113
}
114
115
/**
116
* Callbacks have different signature
for
GET and HEAD
Callers
1
website
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected