Skip to content

isPrimitiveOrPrimitiveClass

@tsed/core

Usage ​

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

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

Overview ​

ts
function isPrimitiveOrPrimitiveClass(target: any): boolean;

Description ​

Checks if a value is a primitive or primitive class constructor (String, Number, Boolean).

Released under the MIT License.