chore(eslint): fix isNumeric types

This commit is contained in:
Paul Chavard 2022-02-23 13:07:23 +01:00 committed by Pierre de La Morinerie
parent 95b9e47993
commit beafa21796

View file

@ -125,8 +125,9 @@ export function on(
);
}
export function isNumeric(n: string) {
return !isNaN(parseFloat(n)) && isFinite(n as any as number);
export function isNumeric(s: string) {
const n = parseFloat(s);
return !isNaN(n) && isFinite(n);
}
function offset(element: HTMLElement) {