JavaScript Object.preventExtensions() Method The Object.preventExtensions() only prevents the addition of new properties from ever being added to an object (i.e., prevents future…
freeze()
-
-
JavaScript Object.getOwnPropertyDescriptors() Method The Object.getOwnPropertyDescriptors() method returns all own property descriptors of a given object. The difference between getOwnPropertyDescriptors() and getOwnPropertyDescriptor() method…
-
JavaScript Object.getOwnPropertyNames() Method The Object.getOwnPropertyNames() method returns an array of all properties (except those non-enumerable properties which use symbol) found directly upon…
-
JavaScript Object.getOwnPropertySymbols() Method The Object.getOwnPropertySymbols() method returns an array of all symbol properties found directly upon a given object. This method returns…
-
JavaScript Object.getPrototypeOf() Method The Object.getPrototypeOf() method of JavaScript returns the prototype (i.e. the value of the internal [[Prototype]] property) of the specified…
-
JavaScript Object.is() Method The Object.is() method of JavaScript is used to determine whether two values are the same value. There is a…
-
JavaScript Object.seal() Method The Object.seal() method of JavaScript seals an object which prevents new properties from being added to it and marks…
-
JavaScript Object.setPrototypeOf() Method The Object.setPrototypeOf() method sets the prototype (i.e., the internal [[Prototype]] property) of a specified object to another object or…
-
JavaScript Object.values() Method The Object.values() returns an array which contains the given object’s own enumerable property values, in the same order as…
-
JavaScript Object.entries() Method JavaScript Object.entries() method is used to return an array of a given object’s own enumerable property [key, value] pairs.…