ionic 5 check if string can be a number and then make a number code example
Example: ionic 5 check if string can be a number and then make a number
if(Number(myNumber) != NaN){
myNumber = Number(myNumber);
}
if(Number(myNumber) != NaN){
myNumber = Number(myNumber);
}