MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / take

Function take

ui/src/lib/search-model.ts:265–266  ·  view source on GitHub ↗
(items: readonly T[])

Source from the content-addressed store, hash-verified

263
264 const cap = opts.perSection ?? Number.POSITIVE_INFINITY;
265 const take = <T>(items: readonly T[]): T[] =>
266 Number.isFinite(cap) ? items.slice(0, cap) : [...items];
267 const sections: PaletteSection[] = [];
268
269 if (entries.routes.routed && entries.routes.items.items.length > 0) {

Callers 15

buildEntryPaletteFunction · 0.70
flush_value_refsMethod · 0.50
flush_value_refsMethod · 0.50
flush_value_refsMethod · 0.50
flush_value_refsMethod · 0.50
flush_value_refsMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected