Promise.resolve UNWRAPS Thenables?!

Promise.resolve has RECURSIVE unwrapping! Any object with a 'then' method gets called. Nested thenables unwrap ALL the way down until a real value appears. This automatic unwrapping will confuse your async code!

#javascript #javascripttricks #promise.resolve #thenables #asyncunwrapping #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #promisequirks #advancedjavascript

https://www.youtube.com/watch?v=7gDt_tC_Jw8

Promise.resolve UNWRAPS Thenables?! #JavaScript

YouTube