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

    Function objIsFrozen

    • The objIsFrozen() method determines if an object is frozen. An object is frozen if and only if it is not extensible, all its properties are non-configurable, and all its data properties are non-writable.

      Parameters

      • obj: any

        The object to check if it is frozen.

      Returns boolean

      A Boolean indicating whether or not the given object is frozen.

      0.12.0

      const obj = { a: 1 };
      console.log(objIsFrozen(obj)); // false

      const frozen = objFreeze({ b: 2 });
      console.log(objIsFrozen(frozen)); // true