我正在尝试使用array.map()将属性动态添加到对象数组中。我可以让我的代码以我想要的方式工作,让我的测试通过,但我必须硬编码密钥,这不会使函数变得灵活/可重用,而且是一种“hack”。profession' & not quite how I want it to work
return arr.mapfunction addKeyV
为什么这个代码:let m = new Map(a);code.0.0.128.js:33943 Uncaught TypeError: undefinedis not a function at http://localhost:/code.0.0.128.js:33943:26 at http://lo