Function getObjectProperty

  • Get a nested object property on the target object, property path is separated by a period-sign (.)

    Parameters

    • obj: any

      target object

    • prop: string

      property path separated by a period (.) to set

    Returns any

    The value at the path or undefined when not set or part of the path doesn't exists