diff --git a/src/utils/index.ts b/src/utils/index.ts index efae7d9..84e7c59 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -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; }