tguard-js
    Preparing search index...

    Function isStringArray

    • Determines whether the provided value is an array of strings.

      Parameters

      • x: unknown

        The value to be checked.

      Returns x is string[]

      true if the value is an array of strings, otherwise false.

      This function is an alias for:

      isArrayOf<string>(x, isString);
      

      ...but rejects empty arrays.

      Use isArrayOf if empty arrays should be considered valid.

      1.0