• 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 | NonNullable<TObject[TKey1]>[TKey2]

    _.get

  • Type Parameters

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

    Parameters

    Returns TDefault | Exclude<NonNullable<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 | NonNullable<NonNullable<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<
            NonNullable<NonNullable<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
        | NonNullable<NonNullable<NonNullable<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<
            NonNullable<NonNullable<NonNullable<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

    Returns TDefault

    _.get

  • Parameters

    Returns undefined

    _.get

  • Type Parameters

    • TObject
    • TPath extends string

    Parameters

    Returns string extends TPath ? any : GetFieldType<TObject, TPath, "Path">

    _.get

  • Type Parameters

    • TObject
    • TPath extends string
    • TDefault = GetFieldType<TObject, TPath, "Path">

    Parameters

    Returns TDefault | Exclude<GetFieldType<TObject, TPath, "Path">, undefined | null>

    _.get

  • Parameters

    Returns any

    _.get