Python Array Get Function Hashmap In Javascript