• Freeze an object and all nested objects recursively which prevents the modification of existing property attributes and values, and prevents the addition of new properties.

    Freezes the object in place and returns the same object for convenience.

    Type Parameters

    • T

    Parameters

    • value: T

      Object to freeze

    Returns T

    Frozen instance of the object