From 70fe05093f91440925c693f835e56f6b387bfffc Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 19 Feb 2024 11:37:09 +0100 Subject: [PATCH] chore: fix eslint rule --- src/utils/index.ts | 1 + 1 file changed, 1 insertion(+) 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; }