TomTom Maps for JavaScript
    Preparing search index...

    Function extractLastUserText

    • Extracts the text content of the last user message in a message array. Returns null if no user message is found or if content has no text.

      Parameters

      • messages: readonly ModelMessage[]

      Returns string | null