Fix some bugs
This commit is contained in:
parent
1893b774e7
commit
fd14613db7
123 changed files with 187 additions and 31 deletions
2
src/framework/helper/last.ts
Normal file → Executable file
2
src/framework/helper/last.ts
Normal file → Executable file
|
|
@ -1,2 +1,2 @@
|
|||
export const last = <T>(list: Array<T>): T =>
|
||||
export const last = <T>(list: ArrayLike<T>): T =>
|
||||
list.length >= 1 ? list[list.length - 1] : undefined;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue