Converts nested object properties to arrays.

  • Parameters

    • root: any

      The root object to convert.

    • OptionalforceArray: boolean = false

      Optional parameter to force conversion to arrays even if no numeric keys are present.

    Returns any

    • The converted object with nested properties converted to arrays.