UNPKG

wat

Version:

Community-controlled cheat sheets for every coder.

11 lines (7 loc) 224 B
## .join([separator]) Adds all the elements of an array separated by the specified separator string. ```js const a = [0, 1, 2, 3, 4]; const b = a.join("-"); // "0-1-2-3-4" ``` The default is a comma (",").