MCPcopy
hub / github.com/Waishnav/devspace / takeHead

Function takeHead

src/process-sessions.ts:113–116  ·  view source on GitHub ↗
(value: string, count: number)

Source from the content-addressed store, hash-verified

111}
112
113function takeHead(value: string, count: number): string {
114 if (count <= 0) return "";
115 return sliceCodePoints(value, 0, count);
116}
117
118function takeTail(value: string, count: number): string {
119 if (count <= 0) return "";

Callers 2

appendMethod · 0.85
truncateOutputFunction · 0.85

Calls 1

sliceCodePointsFunction · 0.85

Tested by

no test coverage detected