join

Join items in an Array together.


Syntax


Parameters

  • Array subject - The Array containing the items to join together.
  • String separator - The optional String to use in between each item as they are joined together.


Result

  • String - The result of joining the items in subject together.

Returns a String, produced by joining the items in subject together, optionally separated by a separator String.