Object.setPrototypeOf

Sets the prototype of a specified object.

Syntax

setPrototypeOf(object, proto)

Parameters

Return value

The object that was passed to the function.