From 2f154cb6955d43ed18fcfecaab1df4d198978004 Mon Sep 17 00:00:00 2001 From: Mehrshad Date: Thu, 14 Sep 2023 15:04:14 +0330 Subject: [PATCH] refactor: there's no need for isInt() --- util/index.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/util/index.ts b/util/index.ts index 737096e7..a9165729 100644 --- a/util/index.ts +++ b/util/index.ts @@ -410,9 +410,6 @@ const itemsFromMessage = (str: string) => { .filter(e => !!e); }; -// Check if a number is int -const isInt = (n: number) => Number(n) === n; - // Check if a number is float const isFloat = (n: number) => typeof n === 'number' && !Number.isInteger(n); @@ -497,7 +494,6 @@ export { isDisputeSolver, getFee, itemsFromMessage, - isInt, isFloat, getLanguageFlag, delay,