Function zipObjectDeep

  • This method is like zipObject except that it supports property paths.

    Parameters

    • Optional props: any

      The property identifiers.

      Optional
    • Optional values: any

      The property values.

      Optional

    Returns any

    Returns the new object.

    Since

    4.1.0

    See

    unzip, unzipWith, zip, zipObject, zipWith

    Example

    zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2])
    // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }