@nevware21/ts-utils
    Preparing search index...

    Function objPreventExtensions

    • The Object.preventExtensions() method prevents new properties from ever being added to an object (i.e. prevents future extensions to the object). It also prevents the object's prototype from being re-assigned.

      Type Parameters

      • T

      Parameters

      • obj: T

        The object which should be made non-extensible.

      Returns T

      The object being made non-extensible.