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

    Function isDefined

    • Checks if a value is Defined.

      Only undefined is rejected: null and falsy values such as 0, "", and false are all defined. On success the value narrows to its declared type without undefined, so the guard doubles as a filtering predicate, as in values.filter(isDefined).

      Type Parameters

      • V

        The declared type of the value to check

      Parameters

      • value: V

        The value to check

      Returns value is Defined<V>

      True if the value is not undefined; false otherwise