How can I avoid recursion in this JavaScript function that uses Promises? 1:18 | Video işleniyor... Yükleniyor... İndir