Skip to content

ancestorOf

@tsed/core

Usage ​

typescript
import { ancestorOf } from "@tsed/core";

See /packages/core/src/utils/ancestorOf.ts.

Overview ​

ts
function ancestorOf(target: any): any;

Description ​

Returns the immediate prototype (ancestor) of the given target.

Internally uses Object.getPrototypeOf to retrieve the prototype chain ancestor.

Released under the MIT License.