Parseint Array JavaScript

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

console.log(arr);
//Array(3) [ 1, 2, 3 ]
Marton