getPrototypeOf static method

  1. @Since.new('3.13')
JSObject? getPrototypeOf(
  1. JSAny value
)

The JavaScript prototype of the JavaScript value, if any.

If value is a primitive value, the result is the prototype of its object wrapper, as if converted by the JavaScript Object(value) first.

A JavaScript object may not have a prototype. This includes objects created by Object.create(null) and Object.prototype.

See Object.getPrototypeOf.

Implementation

@Since('3.13')
external static JSObject? getPrototypeOf(JSAny value);