Class list_info_t

List message object

let list = jsstp.GetNames();
for(let name of list)
console.log(name);

jsstp.list_info_t

Hierarchy (view full)

Indexable

  • [key: number]: string | undefined

    Array member

Constructors

Accessors

  • get entries(): [key_T, value_T][]
  • Get an array of all key-value pairs.

    Returns [key_T, value_T][]

  • get head(): String
  • Get the header of the message

    Returns String

    message header

  • get keys(): key_T[]
  • Get an array of all keys

    Returns key_T[]

  • get length(): number
  • Get the number of members

    Returns number

  • get status_code(): sstp_return_code_t
  • Get header return code (NaN if unexpected)

    Returns sstp_return_code_t

    header return code (NaN if unexpected)

  • get text_content(): String
  • Getting a String Message

    Returns String

    String message.

  • get trivial_clone(): info_object<key_T, value_T>
  • Copy a new object

    Returns info_object<key_T, value_T>

    Copied object

  • get unknown_lines(): String[]
  • Get array of unknown rows

    Returns String[]

    array of unknown rows

  • get values(): value_T[]
  • Get an array of all values

    Returns value_T[]

Methods

  • Gets the iterator

    Returns Iterator<String[], any, undefined>

    Iterator

  • Traverses itself and its children and returns a one-dimensional array of traversal results.

    Type Parameters

    • T

    Parameters

    • func: ((...dimensions_with_value_in_last: [...number[], string]) => T)

      Function to execute, the return value will be added to the array.

        • (...dimensions_with_value_in_last): T
        • Parameters

          • Rest...dimensions_with_value_in_last: [...number[], string]

          Returns T

    Returns T[]

  • Execute a function for each key-value pair.

    Parameters

    • func: ((value: string, key?: number) => string)

      A function to be executed that replaces value if the return value is not undefined.

        • (value, key?): string
        • Parameters

          • value: string
          • Optionalkey: number

          Returns string

    Returns void

  • Traverses itself and returns a one-dimensional array of traversal results.

    Type Parameters

    • T

    Parameters

    • func: ((value: string, key?: number) => T)

      Function to execute, the return value will be added to the array.

        • (value, key?): T
        • Parameters

          • value: string
          • Optionalkey: number

          Returns T

    Returns T[]