我有一个可以包含 Symbol() 项的数组。Array.toSring 带来了一个例外。
const s = [10, 'abc', Symbol('test')].toString(); // this throws an exception
console.log([10, 'abc', Symbol('test')]); // this works
将此类数组转换为字符串的最佳方法是什么(如 console.log 所做的)?
三国纷争
侃侃无极
慕婉清6462132
胡子哥哥
随时随地看视频慕课网APP
相关分类