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

    Function isNotNull

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

      Type Parameters

      • T

        The type of the value

      Parameters

      Returns value is T

      True if the value is not null, otherwise false

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

      v0.4.0