Answers for "how to convert an array to numbers from strings"

11

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 "how to convert an array to numbers from strings"

Code answers related to "Javascript"

Browse Popular Code Answers by Language