Binance Connector JS
    Preparing search index...

    Function setFlattenedQueryParams

    • Recursively flattens an object or array into URL search parameters.

      This function handles nested objects and arrays by converting them into dot-notation query parameters. It supports different types of parameters:

      • Arrays can be stringified or recursively added
      • Objects are flattened with dot notation keys
      • Primitive values are converted to strings

      Parameters

      • urlSearchParams: URLSearchParams

        The URLSearchParams object to modify

      • parameter: unknown

        The parameter to flatten (can be an object, array, or primitive)

      • key: string = ''

        Optional key for nested parameters, used for creating dot-notation keys

      Returns void