HTT Documentation

htt.str

  • Fnjoin(string, table) → string

    True iff. `value` is null.

    Parameters
    • sep: string
      • string to insert between each concatenated element
    • list: table
      • a list of strings to concatenate
    Returns
    • string
      • concatenated strings
  • Fnstringify(any, string) → string

    Converts a Lua value into a formatted string representation with proper indentation.

    Note: handles the formatting of tables and strings. Will use tostring() otherwise.

    Parameters
    • value: any
      • The Lua value to stringify (table, string, number, etc.)
    • indentation: string
      • The base indentation prefix for each line of output
    Returns
    • string
      • The formatted string representation of the value
  • Fnstarts_with(string, string) → boolean

    Returns whether the string begins with the specified prefix

    Parameters
    • str: string
      • The string to check
    • prefix: string
      • The prefix to look for at the start of the string
    Returns
    • boolean
      • true if str starts with prefix, false otherwise