Removes a specified key from an object or an array and recursively cleans up the hierarchy. The passed object or array is mutated.
Param | Type | Default Value | Description |
---|---|---|---|
oObject | object|array | Plain object or array to modify | |
aParts | string[] | Path to property to remove | |
iMaxCleanupDepth? | int | Maximum depth for recursive cleanup of empty parents. By default, there is no limit. |
Method | Description |
---|