MCPcopy Create free account
hub / github.com/Effect-TS/effect / isLineBreak

Function isLineBreak

packages/effect/src/String.ts:1189–1192  ·  view source on GitHub ↗
(char: string)

Source from the content-addressed store, hash-verified

1187 * or `"\n"`).
1188 */
1189const isLineBreak = (char: string): boolean => {
1190 const code = char.charCodeAt(0)
1191 return code === CR || code === LF
1192}
1193
1194/**
1195 * Checks whether the provided characters combine to form a carriage return/line-feed

Callers 1

nextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected