Javascript Map Over Empty Array Python Example