---
lang: en
title: 'API docs: context.context.isvisibleto'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/context
permalink: /doc/en/lb4/apidocs.context.context.isvisibleto.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [Context](./context.context.md) &gt; [isVisibleTo](./context.context.isvisibleto.md)

## Context.isVisibleTo() method

Check if this context is visible (same or ancestor) to the given one

**Signature:**

```typescript
isVisibleTo(ctx: Context): boolean;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td markdown="1">

ctx


</td><td markdown="1">

[Context](./context.context.md)


</td><td markdown="1">

Another context object


</td></tr>
</tbody></table>

**Returns:**

boolean


