let arr = ['4', '9', '966'] arr = arr.map(e=>Number(e)); console.log(arr)// [4, 9, 966]
var res = ['2', '10', '11'].map(v => +v ); document.write('<pre>' + JSON.stringify(res, null, 3) + '<pre