@petsel/es-type-detection - v1.0.0
    Preparing search index...

    Function doesMatchThenable

    • Verifies whether the passed value is either an object or a function which features a then method; hence it executes a shallow check of whether the test candidate features the most basic Thenable behavior/trait.

      Parameters

      • Optionalvalue: any

        An optionally passed value of any type.

      Returns value is Thenable

      A boolean value which indicates whether the tested value does qualify as a Thenable by having