Skip to content
This repository
tree: eea42ab5b9
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 21 lines (14 sloc) 0.957 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
The new =Uize.String.hugJoin= static method of the =Uize.String= module returns a string that is the concatenation of the specified array of items, where a prefix and suffix can be specified for hugging each item in the array, and where an optional separator can additionally be specified.

EXAMPLE
.......................................................
var actions = ['view','reset','save','open','close'];
alert (Uize.String.hugJoin (actions,'[ ',' ]',' -- '));
.......................................................

EXAMPLE - OUTPUT
..........................................................
[ view ] -- [ reset ] -- [ save ] -- [ open ] -- [ close ]
..........................................................



....................................................................................
<< metadata >>

title: 2009-03-08 - NEW METHOD: Uize.String.hugJoin
....................................................................................
Something went wrong with that request. Please try again.