How to convert Set to string with space? January 24, 2023 by Tarik You can use Array.from: Array.from(foo).join(' ') or the spread syntax: [...foo].join(' ')