diff --git a/lib/utils/index.ts b/lib/utils/index.ts index 46bf21619..34d442648 100644 --- a/lib/utils/index.ts +++ b/lib/utils/index.ts @@ -79,8 +79,8 @@ export function wrapMultiResult(arr: unknown[] | null): unknown[][] | null { * ``` */ export function isInt(value: any): value is string { - const x = parseFloat(value); - return !isNaN(value) && (x | 0) === x; + const x = Number(value); + return Number.isInteger(x); } /**