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

    Function isLazy

    • Checks if a value is a Lazy value, that is either a plain value or a no-arg function returning a value.

      Type Parameters

      • T

        The type of the value

      Parameters

      • value: unknown

        The value to check

      • is: Guard<T>

        A type guard function to validate the value if it is not a function

      Returns value is Lazy<T>

      True if the value is a no-arg function or satisfies the type guard; false otherwise

      Functions with a non-zero expected argument length are rejected.