Browse documentation

hasContext

Reports whether the active execution contains a value for a context boundary.

Table of contents

Category

Value

Import

js
import { hasContext } from "valyrian.js/context";

Public signature

ts
<T>(scope: ContextScope<T>): boolean

Parameters

ts
scope: ContextScope<T>

Result

ts
boolean