Mongodb – Return 2 variables in Javascript – Nodjs application
I want to find an item and the index of this item inside array and store this in 2 separate variables. Quite new to programming but struggling to solve the problem. I tried destructing but it is not working const…