Here is a version that works with both readonly and mutable tuples types and a separator.

type Join<
  TElements,
  TSeparator extends string,
> = TElements extends Readonly<[infer First, ...infer Rest]>
  ? Rest extends ReadonlyArray<string>
    ? First extends string
      ? `${First}${Rest extends [] ? '' : TSeparator}${Join<Rest, TSeparator>}`
      : never
    : never
  : '';

type MutableTuple = ["a", "b", "c"];
type MutableTupleJoined = Join<MutableTuple, " | ">;
//   ^? "a | b | c"

type ReadonlyTuple = readonly ["a", "b", "c"];
type ReadonlyTupleJoined = Join<ReadonlyTuple, " | ">;
//   ^? "a | b | c"

A readonly type often comes from const assertions e.g.

const tuple = ["a", "b", "c"] as const;
type Joined = Join<typeof tuple, " | ">;

When inlining the tuple type, it is usually mutable e.g.

type Joined = Join<["a", "b", "c"], " | ">;
Answer from nyarthan on Stack Overflow
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ typescript โ€บ typescript_array_join.htm
TypeScript - Array join()
join() method joins all the elements of an array into a string. separator โˆ’ Specifies a string to separate each element of the array. If omitted, the array elements are separated with a comma.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ typescript โ€บ typescript-array-join-method
TypeScript Array join() Method - GeeksforGeeks
July 12, 2024 - The Array.join() method in TypeScript is a built-in function used to join all the elements of an array into a single string.
Discussions

Typescript `Array.join` literal return type
My goal is to write a function that joins strings in an array and returns them as a literal string type ("ab"). More on stackoverflow.com
๐ŸŒ stackoverflow.com
Typescript join specific properties of an array as string - Stack Overflow
1 How to merge string array values to a particular property in object array in Type Script / Java Script ยท 0 How to join fields of an array of objects in javascript/typescript More on stackoverflow.com
๐ŸŒ stackoverflow.com
How to convert array into comma separated string in javascript - Stack Overflow
I have an array: a.value = [a,b,c,d,e,f] How can I convert to comma-seperated string like: a.value = "a,b,c,d,e,f" More on stackoverflow.com
๐ŸŒ stackoverflow.com
How do I convert an array to a string with commas in JavaScript
...you get a better, more thorough explanation here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join More on reddit.com
๐ŸŒ r/JavaScriptTips
1
4
April 13, 2023
๐ŸŒ
Java Guides
javaguides.net โ€บ 2025 โ€บ 01 โ€บ typescript-array-join.html
TypeScript Array join()
January 4, 2025 - The join() method concatenates all the elements of an array into a single string. The elements are separated by a specified separator string. If no separator is provided, a comma (,) is used by default.
๐ŸŒ
xjavascript
xjavascript.com โ€บ blog โ€บ typescript-join-array-of-strings
Mastering String Array Joining in TypeScript โ€” xjavascript.com
For example: const stringArray: string[] = ["Hello", "World", "!"]; Here, stringArray is an array that can only hold string values. The join method is used to concatenate all the elements of an array into a single string.
Find elsewhere
๐ŸŒ
MDN Web Docs
developer.mozilla.org โ€บ en-US โ€บ docs โ€บ Web โ€บ JavaScript โ€บ Reference โ€บ Global_Objects โ€บ Array โ€บ join
Array.prototype.join() - JavaScript - MDN Web Docs
The join() method of Array instances returns a new string that is the concatenation of all elements in this array, separated by commas or a specified separator string. If the array has only one item, that item's stringification is returned without using the separator.
๐ŸŒ
MDN Web Docs
developer.mozilla.org โ€บ en-US โ€บ docs โ€บ Web โ€บ JavaScript โ€บ Reference โ€บ Global_Objects โ€บ TypedArray โ€บ join
TypedArray.prototype.join() - JavaScript - MDN Web Docs
The join() method of TypedArray instances returns a new string that is the concatenation of all elements in this typed array, separated by commas or a specified separator string. If the typed array has only one item, that item's stringification is returned without using the separator.
๐ŸŒ
O'Reilly
oreilly.com โ€บ library โ€บ view โ€บ javascript-the-definitive โ€บ 0596101996 โ€บ re08.html
Array.join( ): concatenate array elements to form a string โ€” ECMAScript v1 - JavaScript: The Definitive Guide, 5th Edition [Book]
August 17, 2006 - The string that results from converting ... between elements. join( ) converts each element of an array to a string and then concatenates those strings, inserting the specified separator string between the elements....
Author: David Flanagan
Published: 2006
Pages: 1018
๐ŸŒ
Futurestud.io
futurestud.io โ€บ tutorials โ€บ javascript-join-an-array-of-strings-to-a-single-string-value
JavaScript โ€” Join an Array of Strings to a Single String Value
April 27, 2023 - The @supercharge/arrays package comes with a handy Arr#join method (like the native JavaScript array). The join method returns a string value of all items concatenated. By default, the package concatenates all values using a comma ,. You may provide your own separator as the first argument.
๐ŸŒ
daily.dev
daily.dev โ€บ home โ€บ blog โ€บ webdev โ€บ javascript join() method: syntax, examples & pitfalls
JavaScript join() Method: Syntax, Examples & Pitfalls | daily.dev
May 25, 2026 - The Array join() method converts arrays to strings with a custom separator. Covers syntax, handling null/undefined, performance in loops
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ article โ€บ join-arrays-to-form-string-in-javascript
Join arrays to form string in JavaScript
March 15, 2026 - The join() method converts a single array to string, while concat() combined with join() handles multiple arrays.
๐ŸŒ
W3Schools
w3schools.com โ€บ jsref โ€บ jsref_join.asp
JavaScript Array join() Method
The join() method returns an array as a string. The join() method does not change the original array. Any separator can be specified. The default is comma (,). ... Coding fundamentals as bite-sized lessons and challenges.
๐ŸŒ
Webdevtutor
webdevtutor.net โ€บ blog โ€บ typescript-join-array-of-strings
Mastering String Array Joining in TypeScript
The simplest and most straightforward way to join an array of strings in TypeScript is by using the join method available on arrays.
๐ŸŒ
Code.mu
code.mu โ€บ en โ€บ javascript โ€บ manual โ€บ array โ€บ join
The join method - concatenation of array elements into a string in JavaScript
Let's concatenate the elements of this array into a string with the separator '-': let arr = [1, 2, 3]; let str = arr.join('-'); console.log(str); ... Let's reverse the characters of a string. To do this, split the string into an array using split using the separator '' (this separator will ...
๐ŸŒ
Codemzy
codemzy.com โ€บ blog โ€บ array-join-object-property
Using Array join() on an object property - Codemzy's Blog
May 30, 2023 - If you ever tried to .join() an ... // "[object Object],[object Object],[object Object]" ... But that happens because the .join() method turns any value into a string, and then joins the string together....