Skip to content

Commit

Permalink
chore: fix eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 19, 2024
1 parent 0dcf84f commit 70fe050
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export function first(arr) {
}

export function last(arr) {
// eslint-disable-next-line unicorn/prefer-at
return arr.length > 0 ? arr[arr.length - 1] : null;
}

Expand Down

0 comments on commit 70fe050

Please sign in to comment.