convert my string of value to number in ionic 2
Using parseInt(myString) should work.
3 Likes
how to convert sessionstorage.getitem("") to number?
parseInt(localStorage.getItem("version"))
This works for me for localStorage, it should work for sessionStorage too.
thanks . it works fine…
Your lucky you didn’t ask this on stack overflow.
5 Likes
parseInt(myString) worked. Thanks.