我有一个可能包含Symbol()项目的数组。Array.toSring引发异常。
const s = [10, 'abc', Symbol('test')].toString(); // this throws an exception
console.log([10, 'abc', Symbol('test')]); // this worksRun Code Online (Sandbox Code Playgroud)
将此类数组转换为字符串的最佳方法是什么(就像console.log一样)?