MCPcopy Create free account
hub / github.com/JacobLinCool/LeetCode-Stats-Card / normalize

Function normalize

packages/cloudflare-worker/src/utils.ts:1–3  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

1export function normalize(str: string): string {
2 return str.toLowerCase().split(/[ _]+/g).join("_");
3}
4
5export function booleanize(value: string | boolean): boolean {
6 if (typeof value === "boolean") return value;

Callers 1

sanitizeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected