Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #array #element #integer #js
ADD COMMENT
Topic
Name
2+6 =