scope issue in javascript between two Functions
问题 i have try to get the excel sheet using xlsx-populate so i am trying to get the values from mailEvents collections so i can add or pass the value in the init Collection function.if i have solved this issue then my problem regarding excel is also solved. in this problem i want to access the topHeader var in init collection. here in arr2 there is the values in this form ['open','processed'] const completeReport = (startTime,endTime) => { serverRef = db.collection("MailEvents"); let getDocs =