MCPcopy Create free account
hub / github.com/pacexy/flow / last

Function last

apps/reader/src/utils.ts:9–11  ·  view source on GitHub ↗
(array: T[])

Source from the content-addressed store, hash-verified

7}
8
9export function last<T>(array: T[]) {
10 return array[array.length - 1]
11}
12
13export function group<T>(array: T[], getKey: (item: T) => string | number) {
14 const o: Record<string, T[]> = {}

Callers 1

TextSelectionMenuFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected