adrianhel
Joined 8 years ago
Karma
99
Submissions
157
Member since
May 4
Joined 8 years ago
<details> <summary> It's not a good idea </summary> really. </details>
It's also wonderful that the browser is truly privacy conscious.
We need policy changes. Or in a very ideal world, fusion.
With optional chaining I would however use this check:
typeof x?.then === 'function'
Or if I was code golfin: x?.then?.call
The first case does not account for built in prototype extensions and the second has false positives with certain data structures.So the function in is-promise should be available as Promise.isThenable or Promise.is.
With Android, at least you can download an APK.