I want the value of the array stored in Firestore, but when I run this code, I always get back "undefined".
function getKey(collection, ind