MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / addSlice

Function addSlice

app/utilities/search.ts:30–34  ·  view source on GitHub ↗
(isMatch: boolean, slice: string)

Source from the content-addressed store, hash-verified

28 const slices: StringSlice[] = [];
29
30 const addSlice = (isMatch: boolean, slice: string) => {
31 if (slice.length > 0) {
32 slices.push({ isMatch, slice });
33 }
34 };
35
36 const addEllipsis = () => {
37 addSlice(false, "…");

Callers 2

addEllipsisFunction · 0.85
getStringSlicesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected