• Returns whether the given object is a promise

    Parameters

    • object: any

      the object to check

    Returns boolean

    whether the given object is a promise

    isPromise({});    // false
    isPromise('foobar'); // false