MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / pascal

Function pascal

tools/build-materials-from-json.ts:56–62  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

54];
55
56function pascal(s: string): string {
57 return s
58 .split(/[^a-zA-Z0-9]+/)
59 .filter(Boolean)
60 .map((p) => p[0].toUpperCase() + p.slice(1))
61 .join('');
62}
63
64function snakeUpper(s: string): string {
65 return s.replace(/[^a-zA-Z0-9]+/g, '_').toUpperCase();

Callers 1

mainFunction · 0.85

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected