Y
Hacker News
new
|
ask
|
show
|
jobs
by
odensc
2251 days ago
In theory `x instanceof Promise` would work, but the reason for this package is that there are many non-standard Promise implementations in the JS world.
1 comments
exogen
2250 days ago
It wouldn't work even if everything were native – see my reply above.
link
odensc
2250 days ago
That applies for browsers, yes (though I'd argue is a rare edge-case), but create-react-app is a Node.js application.
link
exogen
2250 days ago
create-react-app isn't even using is-promise directly. It's several hops in the dependency graph away.
link