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

    Function isEager

    • Checks if a value is an Eager reference.

      Accepts only plain values; when provided, the type guard validates the value. Functions of any arity are always rejected.

      Type Parameters

      • T = unknown

        The type of the underlying value

      Parameters

      • value: unknown

        The value to check

      • Optionalis: Guard<T>

        Optional type guard for the underlying value

      Returns value is Eager<T>

      True if the value is not a function and satisfies the type guard; false otherwise

      isLazy for the dual guard accepting no-arg factories as well