Browse documentation

is

Checks whether a value matches the requested type or constructor.

Table of contents

Category

Value

Import

js
import { is } from "valyrian.js/utils";

Public signature

ts
<T>(value: any, type: string | any): value is T

Parameters

ts
value: any, type: string | any

Result

ts
value is T