ObjectConstructor.freeze<T extends Function>(f: T): T
ObjectConstructor.freeze<T extends { [idx: string]: U
| null
| undefined
| object; },U extends string
| bigint
| number
| boolean
| symbol,>(o: T): Readonly<T>
Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
o: T
Object on which to lock the attributes.