Answers for "converting the array of strings in to the numbers using the mpa method in javascript"

15

javascript Convert an array of strings to numbers

const toNumbers = arr => arr.map(Number);
toNumbers(['1', '2', '3','4']);     // [1, 2, 3, 4]
Posted by: Guest on July-02-2020

Code answers related to "converting the array of strings in to the numbers using the mpa method in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language