Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
odensc
6y ago
0 comments
Share
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.
0 comments
default
newest
oldest
exogen
6y ago
It wouldn't work even if everything were native – see my reply above.
odensc
OP
6y ago
That applies for browsers, yes (though I'd argue is a rare edge-case), but create-react-app is a Node.js application.
exogen
6y ago
create-react-app isn't even using is-promise directly. It's several hops in the dependency graph away.
j
/
k
navigate · click thread line to collapse