• Freezes all entries traversed that are objects including entries in arrays.

    Parameters

    • data: object | []

      An object or array.

    • OptionalskipFreezeKeys: Set<string>

      A Set of strings indicating keys of objects to not freeze.

    Returns object | []

    The frozen object.