I have an array that could contain Symbol() item. Array.toSring brings an exception.
const s = [10, 'abc', Symbol('test')].toString(); // this throws an exception
console.log([10, 'abc', Symbol('test')]); // this works
What is the best way to convert such array to a string (like console.log does)?