change px string to number code example
Example: change px string to number
parseFloat('20.954544px', 10)
> 20.954544
parseInt('20.954544px', 10)
> 20
a = '20px'
parseInt(a, 10);
> 20
parseFloat('20.954544px', 10)
> 20.954544
parseInt('20.954544px', 10)
> 20
a = '20px'
parseInt(a, 10);
> 20