Answers for "how to turn an array sting of numbers into integers"

1

convert array string to number

// CONVERT ARRAY STRING TO ARRAY NUMBER
const arrStr = ["1", "3", "5", "9"];
const nuevo = arrStr.map((i) => Number(i));
console.log(nuevo);
// [1,3,5,9];
Posted by: Guest on June-09-2020

Code answers related to "how to turn an array sting of numbers into integers"

Code answers related to "Javascript"

Browse Popular Code Answers by Language