Function deepSeal

  • Seals all traversed object and array values.

    Type Parameters

    • T extends object | []

      Type of data.

    Parameters

    • data: T

      An object or array.

    • Optionaloptions: { skipKeys?: ReadonlySet<PropertyKey> }

      Options.

      • OptionalskipKeys?: ReadonlySet<PropertyKey>

        A readonly set of property keys whose values are excluded from traversal. Numeric keys are normalized to their JavaScript string-key representation. A matching key is skipped regardless of where it appears in the object graph.

    Returns T

    The sealed object.