List to string

Hi team,

We are creating a dynamic choise chips UI where one can select multiple select. same we are storing in an app state as a list. This needs to be passed in a API query parameters separated by comma. How we can achieve the same? please guide us. Or is there a way to store directly as a string separated by comma in a app state variable?

Ex: var list = ['1','45','77'];

We need to call API by passing the same separated by comma

Ex: Http://example.com?param=1,45,77

We are finding difficult to convert the List to string separated by comma.

Thanks in advance.
Likhith
Software Engineer

5 replies