MCPcopy Create free account
hub / github.com/glideapps/quicktype / firstUpperWordStyle

Function firstUpperWordStyle

src/Strings.ts:402–405  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

400export type WordStyle = (word: string) => string;
401
402export function firstUpperWordStyle(s: string): string {
403 assert(s.length > 0, "Cannot style an empty string");
404 return s[0].toUpperCase() + s.slice(1).toLowerCase();
405}
406
407export function allUpperWordStyle(s: string): string {
408 return s.toUpperCase();

Callers

nothing calls this directly

Calls 1

assertFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…