MCPcopy Create free account
hub / github.com/ethanniser/the-beth-stack / isUpper

Function isUpper

packages/beth-stack/src/jsx/utils.ts:18–21  ·  view source on GitHub ↗
(input: string, index: number)

Source from the content-addressed store, hash-verified

16const CAMEL_REGEX = /[a-z][A-Z]/;
17
18export function isUpper(input: string, index: number): boolean {
19 const code = input.charCodeAt(index);
20 return code >= 65 /* A */ && code <= 90; /* Z */
21}
22
23export function isVoidElement(tag: string): boolean {
24 // Ordered by most common to least common.

Callers 1

toKebabCaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected