Logo

Programming-Idioms

History of Idiom 53 > diff from v48 to v49

Edit summary for version 49 by programming-idioms:
[JS] +DocURL

Version 48

2017-09-29, 14:54:33

Version 49

2018-07-23, 11:49:19

Idiom #53 Join a list of strings

Concatenate elements of string list x joined by the separator ", " to create a single string y.

Illustration

Idiom #53 Join a list of strings

Concatenate elements of string list x joined by the separator ", " to create a single string y.

Illustration
Code
y = x.join(", ");
Code
y = x.join(", ");
Doc URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join