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

    Function isUndef

    • Type guard check if the given value is undefined.

      Parameters

      • value: unknown

        The value to check

      Returns value is undefined

      True if the value is undefined, otherwise false

      const data = ['demo', undefined, 'demo'];
      const count = data.filter(isUndef).length; // 1

      v0.4.0