题解 | #Symbol#
Symbol
https://www.nowcoder.com/practice/12a1ce91d7f042c789d2a28b93b452da
const _symbolKey = array => { // 补全代码 let obj={} for(let i=0;i<array.length;i++){ obj[Symbol(array[i])]=array[i] } return obj }
Symbol
https://www.nowcoder.com/practice/12a1ce91d7f042c789d2a28b93b452da
const _symbolKey = array => { // 补全代码 let obj={} for(let i=0;i<array.length;i++){ obj[Symbol(array[i])]=array[i] } return obj }
相关推荐