CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
zipObjectDeep.js24 linesDownload Raw Back to lodash
1var baseSet = require('./_baseSet'),2    baseZipObject = require('./_baseZipObject');3 4/**5 * This method is like `_.zipObject` except that it supports property paths.6 *7 * @static8 * @memberOf _9 * @since 4.1.010 * @category Array11 * @param {Array} [props=[]] The property identifiers.12 * @param {Array} [values=[]] The property values.13 * @returns {Object} Returns the new object.14 * @example15 *16 * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);17 * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }18 */19function zipObjectDeep(props, values) {20  return baseZipObject(props || [], values || [], baseSet);21}22 23module.exports = zipObjectDeep;24 
basant307/AI_Governance_Project · CoolFace