how to change array element to integer in js

Solutions on MaxInterview for how to change array element to integer in js by the best coders in the world

showing results for - "how to change array element to integer in js"
Claudio
22 Sep 2020
1var res = ['2', '10', '11'].map(v => +v );
2
3document.write('<pre>' + JSON.stringify(res, null, 3) + '<pre