1
,我發現了以下錯誤:Lodash鏈接 - 類型錯誤
Uncaught (in promise) TypeError: (0 , _lodash2.default)(...).keys(...).forEach(...).value is not a function
我的代碼規定的線路上看起來像以下:
_(channels)
.keys()
.forEach((key, index) => {
// do sth.
}).value();
通道對象從火力點來,看起來像
{
"flux" : {
"name" : "flux"
},
"react" : {
"name" : "React"
}
}
我的打字有什麼問題?
它的作品使用lodash 1. *版本,但與版本4. *我不工作。 –
一套如何具有價值? – epascarello