Javascript Map Over Empty Array Python Question