move stuff around until it feels right
This commit is contained in:
3
helpers/last.ts
Normal file
3
helpers/last.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export function last<T>(array: T[]): T | undefined {
|
||||
return array[array.length - 1]
|
||||
}
|
||||
Reference in New Issue
Block a user