Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

parseint array javascript

var arr = ['1','2','3'];
arr = arr.map(x => parseInt(x));

console.log(arr);
//Array(3) [ 1, 2, 3 ]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #parseint #array #javascript
ADD COMMENT
Topic
Name
9+7 =