Add files
This commit is contained in:
commit
77bde04db3
97 changed files with 10327 additions and 0 deletions
3
src/helper/last.ts
Normal file
3
src/helper/last.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export function last<T>(a: Array<T>): T | null {
|
||||
return a.length > 0 ? a[a.length - 1] : null;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue