Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
export
function
normalize(str: string): string {
2
return
str.toLowerCase().split(/[ _]+/g).join(
"_"
);
3
}
4
5
export
function
booleanize(value: string | boolean): boolean {
6
if
(typeof value ===
"boolean"
)
return
value;
Callers
1
sanitize
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected