convert 10 in to 1 to 10 array typescript 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]