Object.setPrototypeOf()

Term side of the Card
Topic: Object
Unit title: Object.setPrototypeOf()
Categories: Method
Explanation side of the Card

Explanation: The static method that sets the prototype, which is the value of the internal `[[Prototype]]` property, of a specified object to another object or `null`. This is useful for changing the inheritance of an object after it has been created.

Browser compatibility:
  • The chrome browser supports this feature starting from version 34
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 31
  • The safari browser supports this feature starting from version 9
Availability: