MCPcopy
hub / github.com/google/zx / getLast

Function getLast

src/util.ts:43–44  ·  view source on GitHub ↗
(arr: { length: number; [i: number]: any })

Source from the content-addressed store, hash-verified

41 arr.reduce((acc, buf) => acc + bufToString(buf), '')
42
43export const getLast = <T>(arr: { length: number; [i: number]: any }): T =>
44 arr[arr.length - 1]
45
46export function preferLocalBin(
47 env: NodeJS.ProcessEnv,

Callers 3

core.tsFile · 0.90
echoFunction · 0.90
util.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…