isPromise

This is a feature request based off an issue opened in bfj.

bfj#69 (closed)

Currently, bfj checks if an object is a Promise by using check.instanceStrict(datum, Promise). This is checking if the object is an instance of a specific implementation of a Promise & not checking if the object is in fact a promise.

The request is to create

check.isPromise(maybeAPromise)
// or
check.isThenable(maybeAPromise)

or, in reality, any strategy to ensure the object should be treated as a promise, regardless of its specific implementation.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information