_.zipObject(返回键值对新数组)
Last updated
Was this helpful?
Last updated
Was this helpful?
语法:
源代码链接:
npm包链接:
描述:
这个方法类似,除了它接受2个数组,第一个数组中的值作为属性标识符(属性名),第二个数组中的值作为相应的属性值。
开始版本:0.4.0
参数:
[props=[]] (Array)
: 数据标识符。
[values=[]] (Array)
:属性值。
返回值:
(Object)
: 返回新的对象。
例子: