Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ hasBom
Function
hasBom
packages/experimental/src/Sse.ts:313–315 ·
view source on GitHub ↗
(buffer: string)
Source
from the content-addressed store, hash-verified
311
const
BOM = [239, 187, 191]
312
313
function
hasBom(buffer: string) {
314
return
BOM.every((charCode: number, index: number) => buffer.charCodeAt(index) === charCode)
315
}
316
317
/**
318
* @since 1.0.0
Callers
1
feed
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected