Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js how to convert all string in array into integer

array = ['1','2','3']
arrayInt = array.map(Number)
//arrayInt = [1,2,3]
 
PREVIOUS NEXT
Tagged: #js #convert #string #array #integer
ADD COMMENT
Topic
Name
5+7 =