|
|
|
|
|
by kitten_mittens_
1053 days ago
|
|
I agree with your point. On > Anything with a `then` method can be awaited, and so native Promises aren’t actually all the special or sacred. Invoking await on an expression involves no extra machinery, only that a Promise-like object is returned. note that _anything_ can be awaited in JS. ```
const x = await null;
console.log(x)
``` |
|