Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2878

Remove last comma from array.foreach

$
0
0

Hi,

As you can see at Images ,i want to remove the last comma from  the loop .

Hovewer don't know how to do it.

 

this is the script ;

var year = LISTBOX_1.getSelectedTexts ();

var y = " ";

year.forEach(function(element, index)

{

y = y + element + ", ";

TEXT_1 = setText(y);

}

);

 

02.png

 

01.png

 

Regards,

Erdem


Viewing all articles
Browse latest Browse all 2878

Trending Articles