vlocode-project - v1.42.0
    Preparing search index...

    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

      • options: { separator?: string; throwOnMissingPath?: boolean } = {}
        • Optionalseparator?: string

          separator to use for the property path, defaults to '.'

        • OptionalthrowOnMissingPath?: boolean

          when true an error is thrown when a part of the path doesn't exist, otherwise undefined is returned when a part of the path doesn't exist; defaults to false

      Returns any

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