parseInt an array code example
Example 1: parseint array javascript
var arr = ['1','2','3'];
arr = arr.map(x => parseInt(x));
console.log(arr);
//Array(3) [ 1, 2, 3 ]
Example 2: convert array to number
let x = [1,2,3,4,5]
let num = +x.join("")
var arr = ['1','2','3'];
arr = arr.map(x => parseInt(x));
console.log(arr);
//Array(3) [ 1, 2, 3 ]
let x = [1,2,3,4,5]
let num = +x.join("")