• Recursively visit each property of an object and any nested objects it has, for arrays visits all elements. Does not visit functions if they exist.

    Type Parameters

    • T

    Parameters

    • obj: T

      Object for which on each property the property visitor is called

    • propertyVisitor: ((prop, value, owner) => void)

      Visitor function called for each property

        • (prop, value, owner): void
        • Parameters

          • prop: string
          • value: any
          • owner: any

          Returns void

    • Optional thisArg: any

    Returns T