Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js convert string array to number array

const atrArr = ['7', '2', '5']
let numbersArr = strArr.map(c => +c); //[7, 2, 5]
 
PREVIOUS NEXT
Tagged: #js #convert #string #array #number #array
ADD COMMENT
Topic
Name
9+1 =