MCPcopy Index your code
hub / github.com/IABTechLab/uid2docs / capitalizeFirstLetter

Function capitalizeFirstLetter

src/utils/index.ts:4–7  ·  view source on GitHub ↗
(string: string)

Source from the content-addressed store, hash-verified

2 typeof value === "string" && value.length > 0;
3
4export const capitalizeFirstLetter = (string: string) =>
5 isNonEmptyString(string)
6 ? string.charAt(0).toUpperCase() + string.slice(1)
7 : string;
8
9export const isInputElement = (element: Node) => {
10 const inputTagTypes = ["input", "textarea", "select", "checkbox"];

Callers 1

RequestDemoFunction · 0.90

Calls 1

isNonEmptyStringFunction · 0.85

Tested by

no test coverage detected