MCPcopy Create free account
hub / github.com/melonjs/melonJS / capitalize

Function capitalize

packages/melonjs/src/utils/string.ts:10–12  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

8 * @returns the capitalized string
9 */
10export function capitalize(str: string) {
11 return str.charAt(0).toUpperCase() + str.slice(1);
12}
13
14/**
15 * returns true if the given string contains a numeric integer or float value

Callers 2

prefixedFunction · 0.90
setPrefixedFunction · 0.90

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected