# 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