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

    Type Parameters

    • T extends object | []

      Type of data.

    Parameters

    • data: T

      An object or array.

    • Optionaloptions: { skipKeys?: Set<string> }

      Options

      • OptionalskipKeys?: Set<string>

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

    Returns T

    The sealed object.