Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
9
export
function
last<T>(array: T[]) {
10
return
array[array.length - 1]
11
}
12
13
export
function
group<T>(array: T[], getKey: (item: T) => string | number) {
14
const
o: Record<string, T[]> = {}
Callers
1
TextSelectionMenu
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected