Function isPromise

  • Returns true if given obj is a promise like object.

    Note: There's not way to check if it's actually a Promise using instanceof since there are a lot of different implementations around.

    Type Parameters

    • T

    Parameters

    • obj: any

    Returns obj is Promise<T>

Generated using TypeDoc