isPromiseLike
With this function we can check if its argument is like a Promise
. In other words, if its argument has a method that is named then
.
Quick example
Complementary example
If we have an object that has a method named then
:
Last updated