Function getNestedValue

  • Get a nested value from an object using a dot-separated path.

    Parameters

    • obj: any

      The object to get the value from.

    • path: any

      The dot-separated path to the property.

    Returns any

    The value at the specified path, or undefined if the path does not exist.