Need to remove square brackets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2023 02:17 AM
Hello Everyone!
I am getting sys id after glide hit and storing in a variable, but when I print that variable sys_id is showing in brackets. I want to remove those square brackets from the sys_id.
var b = ac_ci;
gs.print(b);
Output: b = [bfb9f882db38] {i want to remove these brackets}
I already tried the regex method but had no luck.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2023 03:02 AM
What do you get in gs.print(b);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2023 03:03 AM - edited 01-06-2023 03:06 AM
Hello @Anurag Tripathi
I am getting sys id and undefined when I print b.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2023 03:10 AM
Does it have []
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2023 03:12 AM
Yes, sys id have.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2023 04:50 AM
Its interesting how sys_id has []. What type of variable it is?