unable to convert to integer inside map function javascript code example
Example: parseint array javascript
var arr = ['1','2','3'];
arr = arr.map(x => parseInt(x));
console.log(arr);
//Array(3) [ 1, 2, 3 ]
var arr = ['1','2','3'];
arr = arr.map(x => parseInt(x));
console.log(arr);
//Array(3) [ 1, 2, 3 ]