map() in array in js code example
Example 1: array mdn map
let new_array = arr.map(function callback( currentValue[, index[, array]]) {
// return element for new_array
}[, thisArg])
Example 2: map method
var yourArray= yourArray.map(Number);