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

    Function isNullable

    • Checks if a value is Nullable.

      Absence is accepted under either marker: undefined and null pass without consulting the guard, while every other value must satisfy it. Suited to data crossing a boundary that reports absence under either convention, where the choice of marker carries no meaning.

      Type Parameters

      • T

        The type validated by the type guard

      Parameters

      • value: unknown

        The value to check

      • is: Guard<T>

        A type guard function to validate the value if it is neither undefined nor null

      Returns value is Nullable<T>

      True if the value is undefined, null or satisfies the type guard; false otherwise