• Gets the property value at path of object. If the resolved value is undefined the defaultValue is used in its place.

    Type Parameters

    • TObject extends object
    • TKey extends string | number | symbol

    Parameters

    • object: TObject

      The object to query.

    • path: TKey | [TKey]

      The path of the property to get.

    Returns TObject[TKey]

    Returns the resolved value.

  • Type Parameters

    • TObject extends object
    • TKey extends string | number | symbol

    Parameters

    Returns undefined | TObject[TKey]

    _.get

  • Type Parameters

    • TObject extends object
    • TKey extends string | number | symbol
    • TDefault

    Parameters

    Returns TDefault | Exclude<TObject[TKey], undefined>

    _.get

  • Type Parameters

    • TObject extends object
    • TKey1 extends string | number | symbol
    • TKey2 extends string | number | symbol

    Parameters

    Returns TObject[TKey1][TKey2]

    _.get

  • Type Parameters

    • TObject extends object
    • TKey1 extends string | number | symbol
    • TKey2 extends string | number | symbol

    Parameters

    Returns undefined | TObject[TKey1][TKey2]

    _.get

  • Type Parameters

    • TObject extends object
    • TKey1 extends string | number | symbol
    • TKey2 extends string | number | symbol
    • TDefault

    Parameters

    Returns TDefault | Exclude<TObject[TKey1][TKey2], undefined>

    _.get

  • Type Parameters

    • TObject extends object
    • TKey1 extends string | number | symbol
    • TKey2 extends string | number | symbol
    • TKey3 extends string | number | symbol

    Parameters

    Returns TObject[TKey1][TKey2][TKey3]

    _.get

  • Type Parameters

    • TObject extends object
    • TKey1 extends string | number | symbol
    • TKey2 extends string | number | symbol
    • TKey3 extends string | number | symbol

    Parameters

    Returns undefined | TObject[TKey1][TKey2][TKey3]

    _.get

  • Type Parameters

    • TObject extends object
    • TKey1 extends string | number | symbol
    • TKey2 extends string | number | symbol
    • TKey3 extends string | number | symbol
    • TDefault

    Parameters

    Returns TDefault | Exclude<TObject[TKey1][TKey2][TKey3], undefined>

    _.get

  • Type Parameters

    • TObject extends object
    • TKey1 extends string | number | symbol
    • TKey2 extends string | number | symbol
    • TKey3 extends string | number | symbol
    • TKey4 extends string | number | symbol

    Parameters

    Returns TObject[TKey1][TKey2][TKey3][TKey4]

    _.get

  • Type Parameters

    • TObject extends object
    • TKey1 extends string | number | symbol
    • TKey2 extends string | number | symbol
    • TKey3 extends string | number | symbol
    • TKey4 extends string | number | symbol

    Parameters

    Returns undefined | TObject[TKey1][TKey2][TKey3][TKey4]

    _.get

  • Type Parameters

    • TObject extends object
    • TKey1 extends string | number | symbol
    • TKey2 extends string | number | symbol
    • TKey3 extends string | number | symbol
    • TKey4 extends string | number | symbol
    • TDefault

    Parameters

    Returns TDefault | Exclude<TObject[TKey1][TKey2][TKey3][TKey4], undefined>

    _.get

  • Type Parameters

    • T

    Parameters

    • object: NumericDictionary<T>
    • path: number

    Returns T

    _.get

  • Type Parameters

    • T

    Parameters

    • object: undefined | null | NumericDictionary<T>
    • path: number

    Returns undefined | T

    _.get

  • Type Parameters

    • T
    • TDefault

    Parameters

    • object: undefined | null | NumericDictionary<T>
    • path: number
    • defaultValue: TDefault

    Returns T | TDefault

    _.get

  • Type Parameters

    • TDefault

    Parameters

    • object: undefined | null
    • path: PropertyPath
    • defaultValue: TDefault

    Returns TDefault

    _.get

  • Parameters

    • object: undefined | null
    • path: PropertyPath

    Returns undefined

    _.get

  • Parameters

    • object: any
    • path: PropertyPath
    • OptionaldefaultValue: any

    Returns any

    _.get