Options
All
  • Public
  • Public/Protected
  • All
Menu

Module defaultsDeep

Index

References

Functions Object

References

Renames and re-exports defaultsDeep

Object Functions

  • defaultsDeep(object: any, ...args: any[]): any
  • This method is like defaults except that it recursively assigns default properties.

    Note: This method mutates object.

    since

    5.21.0

    see

    defaults

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

    Parameters

    • object: any

      The destination object.

    • Rest ...args: any[]

    Returns any

    Returns object.