function call in an algorithm while the rest of algorithm is dependent on the result of that function. In such situations the rest of algorithm should be a part of the Promise.then() and there is not any other way. Am I right? It is very ugly...
You're right
async/await
Обсуждают сегодня