how do i remove leading 0 from a string -- ex "002...
# suitescript
l
how do i remove leading 0 from a string -- ex "00213453435"
e
parseInt()
b
although honestly its a pretty direct application of string.replace
s
if you already have lodash handy,
_.trimStart()
is an option
l
i cant use replace because i only want to remove leading 0, "0123456003" should return "123456003"
b
thats why you use it with a regular expression
l
ok great thanks for your help