✏️ 编辑:_baseZipObject.js
路径:
/home/boguraj1/public_html/jobsite/node_modules/lodash/_baseZipObject.js
大小:660 B · 修改:2022-11-21 20:09:38 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
/** * This base implementation of `_.zipObject` which assigns values using `assignFunc`. * * @private * @param {Array} props The property identifiers. * @param {Array} values The property values. * @param {Function} assignFunc The function to assign values. * @returns {Object} Returns the new object. */ function baseZipObject(props, values, assignFunc) { var index = -1, length = props.length, valsLength = values.length, result = {}; while (++index < length) { var value = index < valsLength ? values[index] : undefined; assignFunc(result, props[index], value); } return result; } module.exports = baseZipObject;
💾 保存
取消
保存为 UTF-8,换行统一为 LF