Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

ionic 5 check if string can be a number and then make a number

if(Number(myNumber) != NaN){
	myNumber = Number(myNumber);
}
 
PREVIOUS NEXT
Tagged: #ionic #check #string #number #number
ADD COMMENT
Topic
Name
7+6 =