Answers for "remove quotes from array javascript"

1

remove quotes from array javascript

const strings = [ "20", "30", "40", "3.14159" ];
const numbers = strings.map(Number);
console.log(numbers); // [ 20, 30, 40, 3.14159 ]
Posted by: Guest on May-30-2021

Code answers related to "remove quotes from array javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language