Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Linen-dev/linen.dev
/ isFormattable
Function
isFormattable
apps/web/ui/Message/BlockCode/utilities.ts:5–7 ·
view source on GitHub ↗
(code: string)
Source
from the content-addressed store, hash-verified
3
}
4
5
export
function
isFormattable(code: string): boolean {
6
return
isJSON(code);
7
}
8
9
function
isJSON(code: string): boolean {
10
const
input = code.trim();
Callers
2
utilities.test.ts
File · 0.90
BlockCode
Function · 0.90
Calls
1
isJSON
Function · 0.85
Tested by
no test coverage detected