Nalini1998 / Project_Public

MIT License
2 stars 0 forks source link

Theory: Instance methods in Object #562

Closed Nalini1998 closed 1 year ago

Nalini1998 commented 1 year ago

Object.prototype.defineGetter() Associates a function with a property that, when accessed, executes that function and returns its return value.

Object.prototype.defineSetter() Associates a function with a property that, when set, executes that function which modifies the property.

Object.prototype.lookupGetter() Returns the function bound as a getter to the specified property.

Object.prototype.lookupSetter() Returns the function bound as a setter to the specified property.

Object.prototype.hasOwnProperty() Returns a boolean indicating whether an object contains the specified property as a direct property of that object and not inherited through the prototype chain.

Object.prototype.isPrototypeOf() Returns a boolean indicating whether the object this method is called upon is in the prototype chain of the specified object.

Object.prototype.propertyIsEnumerable() Returns a boolean indicating whether the specified property is the object's enumerable own property.

Object.prototype.toLocaleString() Calls toString().

Object.prototype.toString() Returns a string representation of the object.

Object.prototype.valueOf() Returns the primitive value of the specified object.