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

    Function isNotNullish

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

      Type Parameters

      • T

        The type of the value

      Parameters

      Returns value is T

      True if the value is neither null nor undefined, otherwise false

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

      v0.4.0