Alexandroppolus

Results 5 comments of Alexandroppolus

Это не "теперь", а уже несколько лет как. V8 здесь не отслеживает судьбу созданных функций (в частности, пофиг что функция `g1` из последнего примера поедет сразу в GC). Всё просто:...

Сюда бы до комплекта ещё `resolveOuter(Promise.reject(err))`, т.е. резолв промиса отклоненным промисом. И, совсем уж до комплекта, обсудить тему "thenable", которая затерялась где-то в глубине параграфа про цепочки промисов.

This solution works only if the string contains the same characters, e.g. 'aaa' for different characters: ```ts type Len = LengthOfString; // 1 ```

@teamchong Thanks. This is the second time I've seen the magic of `string & {}` (after the autocomplete hint `'value1' | 'value2' | (string & {})` for function parameter with...

@Nlicro Example of autocomplete. In VSCode (I use version 1.77), for call of function `myFunc` (declared `function myFunc(x: 'value1' | 'value2' | (string & {})) {}`) a suggestion appears with...