Skip to content

isClass

@tsed/core

Usage ​

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

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

Overview ​

ts
function isClass(target: any): boolean;

Description ​

Determines whether a given value represents a class (constructor function).

This helper filters out common non-class values such as primitives, symbols, plain objects, dates, promises, arrays, buffers, and arrow functions.

Released under the MIT License.