Transform array of strings to array of numbers.
let elements = ['1', '3', '10'] elements = elements.map(Number) // returns Array [ 1, 3, 10 ]
You have an array of strings and you want to have numbers instead?
This is the trick.