Function isPromiseLike

  • Checks if the type of value is a PromiseLike instance (contains a then function).

    Type Parameters

    • T

    Parameters

    • value: any

      Value to be checked.

    Returns value is PromiseLike<T>

    True if the value is a PromiseLike, false otherwise.