Skip to content

getPrototypeOf<T>

Gets the prototype of the specified object.

Import:

import { getPrototypeOf } from 'obsidian-dev-utils/object-utils';

Signature:

function getPrototypeOf(instance: T): T

Parameters:

ParameterTypeDescription
instanceTThe object instance to retrieve the prototype of.

Returns: T — The prototype of the object.