showing results for - "parseint array javascript"
Frida
08 Jan 2017
1var arr = ['1','2','3'];
2arr = arr.map(x => parseInt(x));
3
4console.log(arr);
5//Array(3) [ 1, 2, 3 ]