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

    Function isSome

    • Checks if a value is a Some value, that is either a single value or a readonly array of values.

      Type Parameters

      • T

        The type of the value(s)

      Parameters

      • value: unknown

        The value to check

      • is: Guard<T>

        A type guard function to validate the value or its array elements

      Returns value is Some<T>

      True if the value satisfies the type guard or is an array where all elements satisfy it; false otherwise