---
id: api/cypress-api/iscy
title: Cypress.isCy()
description: >-
  Cypress.isCy checks if a variable is a valid instance of cy or a cy chainable
  in Cypress.
section: api
source_path: docs/api/cypress-api/iscy.mdx
version: e6c8d867c21227247f14714fb5690c7c018983c5
updated_at: '2026-08-08T12:39:37.868Z'
---
# Cypress.isCy

`Cypress.isCy()` checks if a variable is a valid instance of `cy` or a `cy` chainable.

This utility may be useful when writing a plugin using [Node Events](/llm/markdown/api/node-events/overview.md) for Cypress and you want to determine if a value is a valid Cypress chainable.

## Syntax

```
Cypress.isCy(obj)
```

### Arguments

**obj _(Object)_**

The object to test.

## Examples

```
Cypress.isCy(cy) // trueconst chainer = cy.wrap().then(() => {  Cypress.isCy(chainer) // true})Cypress.isCy(undefined) // falseCypress.isCy(() => {}) // false
```
