# Medium - Readonly deep

# question

Implement a generic DeepReadonly which make every parameter of an object - and its sub-objects recursively - readonly.

实现一个通用的 DeepReadonly<T>,它将对象的每个参数及其子对象递归地设为只读。

You can assume that we are only dealing with Objects in this challenge. Arrays, Functions, Classes and so on do not need to be taken into consideration. However, you can still challenge yourself by covering as many different cases as possible.


# answer

上次更新: 10/19/2022, 3:41:54 PM