Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/Linen-dev/linen.dev
/ getLetter
Function
getLetter
packages/utilities/src/string.ts:63–69 ·
view source on GitHub ↗
(text: string)
Source
from the content-addressed store, hash-verified
61
}
62
63
export
function
getLetter(text: string): string {
64
const
character = text.trim().slice(0, 1).toLowerCase();
65
if
(isLetter(character)) {
66
return
character;
67
}
68
return
'u'
;
69
}
Callers
4
string.spec.ts
File · 0.90
TextAvatar
Function · 0.90
Symbol
Function · 0.90
Emoji
Function · 0.90
Calls
1
isLetter
Function · 0.85
Tested by
no test coverage detected