const [top, bottom, left, right] = [txtStyle.getPropertyValue('top'),
txtStyle.getPropertyValue('bottom'),
txtStyle.getPropertyValue('left'),
txtStyle.getPropertyValue('right')];
Values are assigned as "24px" etc. But I want to assign it as 24 (int). Which is the best way to do it?
parseInt("24px")===24. Is that the solution you wanted?assign it as 24, seemsparseInt("24px")would work