From 80f3a40249dc4a984a5d8639eab2e02e363f2865 Mon Sep 17 00:00:00 2001 From: Komarov Alexander Date: Sat, 7 Nov 2020 20:04:16 +0100 Subject: [PATCH] isNumber => typeof styleMinWidth === 'number' --- src/lib/Utils/CellResizeUtils.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/Utils/CellResizeUtils.ts b/src/lib/Utils/CellResizeUtils.ts index 94ddc9aa..08d0d9bf 100644 --- a/src/lib/Utils/CellResizeUtils.ts +++ b/src/lib/Utils/CellResizeUtils.ts @@ -1,5 +1,3 @@ -import { isNumber } from 'util'; - import { DispatchFunc } from '../types'; export const HeadCellResizeStateAction = 'HeadCellResizeStateAction'; @@ -26,7 +24,7 @@ export const getValidatedWidth = (newWidth: number, minWidth: number) => { export const getMinWidth = (style: any): number => { let minWidth: number = 20; const styleMinWidth = style && style.minWidth; - if (styleMinWidth && isNumber(styleMinWidth)){ + if (styleMinWidth && typeof styleMinWidth === 'number'){ minWidth = styleMinWidth; } return minWidth;