Answers for "strings in array to number"

10

convert an array of strings to numbers

let result = ["1", "2", "3", "4"].map(i=>Number(i));
console.log(result);
Posted by: Guest on February-24-2021

Code answers related to "strings in array to number"

Code answers related to "Javascript"

Browse Popular Code Answers by Language