MCPcopy Index your code
hub / github.com/Waishnav/devspace / sliceCodePoints

Function sliceCodePoints

src/process-sessions.ts:109–111  ·  view source on GitHub ↗
(value: string, start: number, end?: number)

Source from the content-addressed store, hash-verified

107}
108
109function sliceCodePoints(value: string, start: number, end?: number): string {
110 return Array.from(value).slice(start, end).join("");
111}
112
113function takeHead(value: string, count: number): string {
114 if (count <= 0) return "";

Callers 1

takeHeadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected