MCPcopy Create free account
hub / github.com/avoidwork/tenso / capitalize

Function capitalize

src/utils/capitalize.js:11–13  ·  view source on GitHub ↗
(obj, e = false, delimiter = SPACE)

Source from the content-addressed store, hash-verified

9 * @returns {string} The capitalized string
10 */
11export function capitalize (obj, e = false, delimiter = SPACE) {
12 return e ? explode(obj, delimiter).map(capitalize).join(delimiter) : obj.charAt(INT_0).toUpperCase() + obj.slice(INT_1);
13}

Callers 1

Calls 1

explodeFunction · 0.90

Tested by

no test coverage detected