Port array.js and file.js to typescript
This commit is contained in:
parent
b9ed180f27
commit
8524d37f9e
3 changed files with 6 additions and 4 deletions
3
lib/utils/array.ts
Normal file
3
lib/utils/array.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export default function last<T>(arr: T[]): T {
|
||||
return arr[arr.length - 1];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue