{
  "doc": {
    "id": "api/cypress-api/iscy",
    "title": "Cypress.isCy | Cypress Documentation",
    "description": "Cypress.isCy checks if a variable is a valid instance of cy or a cy chainable in Cypress.",
    "section": "api",
    "source_path": "/llm/markdown/api/cypress-api/iscy.md",
    "version": "524ff5211e60b5d53e55d6ad976d83966f66e7cd",
    "updated_at": "2026-04-30T14:20:05.396Z",
    "headings": [
      {
        "id": "api/cypress-api/iscy#cypress-iscy",
        "text": "Cypress.isCy",
        "level": 1
      },
      {
        "id": "api/cypress-api/iscy#syntax",
        "text": "Syntax",
        "level": 2
      },
      {
        "id": "api/cypress-api/iscy#arguments",
        "text": "Arguments",
        "level": 3
      },
      {
        "id": "api/cypress-api/iscy#examples",
        "text": "Examples",
        "level": 2
      }
    ]
  },
  "content": {
    "type": "root",
    "children": [
      {
        "type": "heading",
        "depth": 1,
        "children": [
          {
            "type": "text",
            "value": "Cypress.isCy"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "`Cypress.isCy()` checks if a variable is a valid instance of `cy` or a `cy` chainable."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "This utility may be useful when writing a plugin using "
          },
          {
            "type": "link",
            "title": null,
            "url": "/llm/markdown/api/node-events/overview.md",
            "children": [
              {
                "type": "text",
                "value": "Node Events"
              }
            ]
          },
          {
            "type": "text",
            "value": " for Cypress and you want to determine if a value is a valid Cypress chainable."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 2,
        "children": [
          {
            "type": "text",
            "value": "Syntax"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "Cypress.isCy(obj)"
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "Arguments"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "obj (Object)"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "The object to test."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 2,
        "children": [
          {
            "type": "text",
            "value": "Examples"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "Cypress.isCy(cy) // trueconst chainer = cy.wrap().then(() => {  Cypress.isCy(chainer) // true})Cypress.isCy(undefined) // falseCypress.isCy(() => {}) // false"
      }
    ]
  },
  "token_estimate": 104
}