Function objSetPrototypeOf

  • The objSetPrototypeOf() method sets the prototype (i.e., the internal [Prototype] property) of a specified object to another object or null.

    Parameters

    • obj: any

      The object which is to have it's prototype set.

    • proto: object

      The object's new prototype (an object or null)

    Returns any

    The specified object.