javascript map returns element not defined code example Example: map method var yourArray= yourArray.map(Number);