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

Function pushAll

src/utils.ts:424–426  ·  view source on GitHub ↗
(target: T[], items: readonly T[])

Source from the content-addressed store, hash-verified

422 * source file of a few megabytes are that many.
423 */
424export function pushAll<T>(target: T[], items: readonly T[]): void {
425 for (let i = 0; i < items.length; i++) target.push(items[i]!);
426}
427
428/** `Math.max(...values)` for a list of any length (see pushAll); -Infinity for none. */
429export function maxOf(values: readonly number[]): number {

Callers 11

extractBareScriptMethod · 0.90
addOptionsMembersMethod · 0.90
normalizeValueFunction · 0.90
extractMethod · 0.90
extractFromSourceFunction · 0.90
decodeKernelBundleFunction · 0.90
findDescendantFunction · 0.90
appendCppMacroMethodsFunction · 0.90
materializeKernelResultFunction · 0.90
tryKernelExtractFunction · 0.90

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected