Function isPromiseLike

  • Detect whether the value has CommonJS Promise/A+ interface or not

    Parameters

    • v: any

    Returns v is {
        then: Function;
    }