Skip to content

Commit 0dcf84f

Browse files
authored
fix: node 14 compatibility (#138)
1 parent 543c19d commit 0dcf84f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export function first(arr) {
55
}
66

77
export function last(arr) {
8-
return arr.length > 0 ? arr.at(-1) : null;
8+
return arr.length > 0 ? arr[arr.length - 1] : null;
99
}
1010

1111
export function startCase(str) {

0 commit comments

Comments
 (0)