Skip to content

Documentation / @ripl/utilities / objectFreeze

Function: objectFreeze() ​

objectFreeze<TValue>(value): Readonly<TValue>

Defined in: object.ts:2

Creates a shallow frozen copy of the given object.

Type Parameters ​

Type Parameter
TValue extends object

Parameters ​

ParameterType
valueTValue

Returns ​

Readonly<TValue>