NewDash

    Function defaultsDeep

    • This method is like defaults except that it recursively assigns default properties.

      Note: This method mutates object.

      Parameters

      • object: any

        The destination object.

      • ...args: any[]

      Returns any

      Returns object.

      5.21.0

      [[defaults]]

      defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } })
      // => { 'a': { 'b': 2, 'c': 3 } }
    MMNEPVFCICPMFPCPTTAAATR