isPromise :: Any value => Boolean result
Returns true if the provided value is a Promise, false otherwise.
true
Promise
false
import { isPromise } from 'conductor' isPromise(42) // false isPromise(Promise.resolve(42)) // true
Last updated 6 years ago