@metreeca/core - v0.10.0
    Preparing search index...

    Function isPromiseLike

    • Checks if a value is thenable.

      Admits any value exposing a then() method, whatever its provenance, so that a possibly asynchronous value is told apart from a settled one without ruling out foreign promise implementations; nothing beyond then() is guaranteed, and isPromise is required where catch() and finally() are also relied on.

      Type Parameters

      • T = unknown

        The type of the promised value

      Parameters

      • value: unknown

        The value to check

      Returns value is PromiseLike<T>

      True if the value exposes a then() method; false otherwise