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

    Function isNull

    • Type guard check if the given value is null.

      Parameters

      • value: unknown

        The value to check

      Returns value is null

      True if the value is null, otherwise false

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

      v0.4.0