Type-guard that checks whether an object looks like a promise; namely, that it has a then() method.
then()
Type-guard that checks whether an object looks like a promise; namely, that it has a
then()
method.