Need to remove square brackets

TejasviR
Tera Contributor

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

 

9 REPLIES 9

What do you get in   gs.print(b);

-Anurag

Hello @Anurag Tripathi 

I am getting sys id and undefined when I print b.

Does it have []

-Anurag

Yes, sys id have.

@TejasviR 

Its interesting how sys_id has []. What type of variable it is?