@luolapeikko/ts-common
    Preparing search index...

    Function isNotUndef

    • Type guard check if the given value is not undefined.

      Type Parameters

      • T

        The type of the value

      Parameters

      • value: Undef<T>

        The value to check

      Returns value is T

      True if the value is not undefined, otherwise false

      const data = ['demo', undefined, 'demo'];
      const output: string[] = data.filter(isNotUndef);

      v0.4.0