We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dcf84f commit 70fe050Copy full SHA for 70fe050
src/utils/index.ts
@@ -5,6 +5,7 @@ export function first(arr) {
5
}
6
7
export function last(arr) {
8
+ // eslint-disable-next-line unicorn/prefer-at
9
return arr.length > 0 ? arr[arr.length - 1] : null;
10
11
0 commit comments