I have this function that returns all users from my firebase and appends it to a global array. My issue is this array is only visible inside the firebase function.
Step 1