Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fix join's no-argument default

...

The join() operator takes a string as its sole argument. This argument is REQUIRED. Not passing in this argument will cause an empty string to be returned. The original array is joined into a single string with the argument placed between the array elements. If the argument is omitted, the default separator is ','. For example:

Code Block
languagejavascript
themeConfluence
a = ["A","B","C"];
c = a.join(";"); // c = "A;B;C"

...