Answers for "how to change array element to integer in js"

0

how to change array element to integer in js

var res = ['2', '10', '11'].map(v => +v );

document.write('<pre>' + JSON.stringify(res, null, 3) + '<pre
Posted by: Guest on July-13-2021

Code answers related to "how to change array element to integer in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language