【发布时间】:2016-09-08 12:22:18
【问题描述】:
根据lodash v3.10.1的文档,it is possible使用_.zipObject是这样的:
_.zipObject([['fred', 30], ['barney', 40]]);
// => { 'fred': 30, 'barney': 40 }
但在 lodash v.4.15.0 中,我开始这样做了:
_.zipObject([['fred', 30], ['barney', 40]]);
{ 'fred,30': undefined, 'barney,40': undefined }
【问题讨论】: