• Recursively seals (Object.seal) the object (or value). This method DOES NOT support cyclical data structures. This method DOES NOT support advanced object types like Set, Map, or other specialized classes.

    Type Parameters

    • T extends object

    Parameters

    • obj: T

      The object (or value)

    • Optionaloptions: { strict?: boolean } = {}

      Options to configure the behaviour of deepSeal

      • Optionalstrict?: boolean

        Throw an Error if deepSeal is unable to seal something

    Returns T

    The same object (or value) that was passed in