If it's stupid but works, it isn't stupid.
Промисы с if



Промисы со вложенными then



@темы: Promise, Javascript