{
  "doc": {
    "id": "api/utilities/lodash",
    "title": "Cypress._ | Cypress Documentation",
    "description": "Cypress automatically includes lodash and exposes it as Cypress._.",
    "section": "api",
    "source_path": "/llm/markdown/api/utilities/lodash.md",
    "version": "48b03b5502f7aea1d0454750cce208f775403542",
    "updated_at": "2026-05-20T19:00:20.270Z",
    "headings": [
      {
        "id": "api/utilities/lodash#cypress",
        "text": "Cypress._",
        "level": 1
      },
      {
        "id": "api/utilities/lodash#syntax",
        "text": "Syntax",
        "level": 2
      },
      {
        "id": "api/utilities/lodash#usage",
        "text": "Usage",
        "level": 3
      },
      {
        "id": "api/utilities/lodash#examples",
        "text": "Examples",
        "level": 2
      },
      {
        "id": "api/utilities/lodash#each",
        "text": "_.each",
        "level": 3
      },
      {
        "id": "api/utilities/lodash#chain",
        "text": "_.chain",
        "level": 3
      },
      {
        "id": "api/utilities/lodash#see-also",
        "text": "See also",
        "level": 2
      }
    ]
  },
  "chunks": [
    {
      "id": "api/utilities/lodash#examples",
      "doc_id": "api/utilities/lodash",
      "heading": "Examples",
      "heading_level": 2,
      "content_markdown": "## Examples\n\n### `_.each`\n\n```\n// set local reference to lodash and jqueryconst { _, $ } = Cypresscy.get('li').then(($li) => {  // use the _.each function  _.each($li.get(), (el, i) => {    // use $(...) to wrap the DOM element    // into a jQuery object    expect($(el).parent()).to.match('ul')  })})\n```\n\n### `_.chain`\n\n```\ncy  // use the _.chain, _.map, _.take, and _.value functions  .request('http://jsonplaceholder.typicode.com/users')  .then((response) => {    const ids = Cypress._.chain(response.body).map('id').take(3).value()    expect(ids).to.deep.eq([1, 2, 3])  })\n```\n",
      "section": "api",
      "anchors": [
        "examples"
      ],
      "path": "/llm/json/chunked/api/utilities/lodash.json",
      "token_estimate": 97
    },
    {
      "id": "api/utilities/lodash#each",
      "doc_id": "api/utilities/lodash",
      "heading": "_.each",
      "heading_level": 3,
      "content_markdown": "### `_.each`\n\n```\n// set local reference to lodash and jqueryconst { _, $ } = Cypresscy.get('li').then(($li) => {  // use the _.each function  _.each($li.get(), (el, i) => {    // use $(...) to wrap the DOM element    // into a jQuery object    expect($(el).parent()).to.match('ul')  })})\n```\n",
      "section": "api",
      "anchors": [
        "each"
      ],
      "path": "/llm/json/chunked/api/utilities/lodash.json",
      "token_estimate": 60
    }
  ]
}