- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2024 11:39 PM
Hello developers, im trying to set an array to a label/text field with comma separated.
lets suppose arr = [a,b,c];
in Text field it is printing as a,b,c,
At the end it is printing comma as im spliting an arr in comma and populating this.
How can i remove this last comma which is adding. Any help is appreciated. Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2024 11:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2024 11:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2024 11:58 PM - edited 03-16-2024 02:47 AM
You can utilize the following code snippet to remove the last comma:
Simply copy and paste this code into your background script and verify the output.
If this solution resolves your query, kindly mark it as the accepted solution and give it a thumbs up.
Feel free to connect with me on LinkedIn.
Best Regards,
Krushna Birla
Senior Software Engineer
Globant, Pune