typescript array.prototype.map code example Example: map method var yourArray= yourArray.map(Number);