CmpStr - v3.2.1
    Preparing search index...

    Function get

    • Deeply get a value from an object by a path string.

      Type Parameters

      • T extends Record<string, any>

        The type of the object to get the value from

      • R = any

        The return type of the value

      Parameters

      • t: T

        The object to get the value from

      • path: string

        The path string, e.g. a.b.c

      • Optionalfb: R

        The default value to return if the path does not exist

      Returns R | undefined

      • The value at the specified path, otherwise the default value