@alextheman/utility - v4.3.5
    Preparing search index...

    Function deepFreeze

    • Deeply freezes an object or array such that all child objects/arrays are also frozen.

      Note that this will also freeze the input itself as well. If the intent is to create a newly frozen object with a different reference in memory, pass your object through deepCopy first before passing to deepFreeze.

      Type Parameters

      • ObjectType extends object

        The type of the input object.

      Parameters

      • object: ObjectType

        The object to freeze. May also be an array.

      Returns Readonly<ObjectType>

      The input object completely frozen.