an string array with numbers code example
Example: javascript Convert an array of strings to numbers
const toNumbers = arr => arr.map(Number);
toNumbers(['1', '2', '3','4']); // [1, 2, 3, 4]
const toNumbers = arr => arr.map(Number);
toNumbers(['1', '2', '3','4']); // [1, 2, 3, 4]