• Predicate which checks if a value looks like a Promise

    It is probably a Promise if it's an object, and it has a then property which is a Function

    Parameters

    • obj: any

    Returns boolean