Documentation
    Preparing search index...

    Function validateNonEmptyArray

    • Type Parameters

      • T

      Parameters

      • array: T[]

        The array to validate

      • fieldName: string

        Name of the field for error messages

      Returns T[]

      The validated array

      Validate array is not empty

      If the array is empty