Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert an array of strings to numbers

let result = ["1", "2", "3", "4"].map(i=>Number(i));
console.log(result);
 
PREVIOUS NEXT
Tagged: #convert #array #strings #numbers
ADD COMMENT
Topic
Name
2+8 =