resolving promise in try block. and clearing interval promise inside if (win.closed) statement is resolved? can somebody help me understand this behaviour?
Yes. Calling resolve or reject after one of them has already been called is a noop
Обсуждают сегодня