How can I return a value from inside a promise that is in another function in Javascript?
I have this function called getUserData which takes in the user's mobile and returns their userRecord object by checking it in Firebase Authentication. I want the code to be such that when I call the getUserData('some mobile here'), it should return ...
Mar 9, 2018P