@pathmaker-digital/pmd-utilities - v2.2.6
    Preparing search index...

    Function isValid

    • Validates that the provided value is truthy (not null or undefined). Returns boolean based on truthiness.

      Type Parameters

      • T

      Parameters

      • value: T

        The value to validate.

      Returns boolean

      True if the value is not null or undefined, False if otherwise.

      const input = getInput();
      isValid(input); // True if input is valid.