hunk.code_window:  * @param {string | Function} val - Value to set property to.
    * @param {number} [idx] - Optional index within the selection.
    */
   function setCss(el, prop, val, idx) {
     if (typeof prop == 'string') {
       var styles = getCss(el);
       if (typeof val === 'function') {
         val = val.call(el, idx, styles[prop]);
       }
  
hunk.labels: keep keep keep keep replace keep keep keep keep keep
hunk.after_edit:   if (typeof prop === 'string') {
  
hunk.file_path: lib/api/css.js
hunk.type: replace
file: {
    "name": "cheerio",
    "version": "1.0.0-rc.5",
    "description": "Tiny, fast, and elegant implementation of core jQuery designed specifically for the server",
    "author": "Matt Mueller <mattmuelle@gmail.com> (mat.io)",
    "license": "MIT",
    "keywords": [
      "htmlparser",
      "jquery",
      "selector",
      "scraper",
      "parser",
      "html"
    ],
    "repository": {
      "type": "git",
      "url": "git://github.com/cheeriojs/cheerio.git"
    },
    "bugs": {
      "url": "https://github.com/cheeriojs/cheerio/issues"
    },
    "homepage": "https://cheerio.js.org/",
    "main": "./index.js",
    "types": "types/index.d.ts",
    "files": [
      "index.js",
      "types/index.d.ts",
      "lib"
    ],
    "engines": {
      "node": ">= 0.12"
    },
    "dependencies": {
      "cheerio-select": "^1.0.0",
      "dom-serializer": "~1.2.0",
      "domhandler": "^4.0.0",
      "htmlparser2": "^6.0.0",
      "parse5": "^6.0.1",
      "parse5-htmlparser2-tree-adapter": "^6.0.1"
    },
    "devDependencies": {
      "@types/node": "^14.14.16",
      "benchmark": "^2.1.4",
      "eslint": "^7.16.0",
      "eslint-config-prettier": "^7.1.0",
      "eslint-plugin-jsdoc": "^30.7.9",
      "husky": "^4.3.6",
      "jest": "^26.6.3",
      "jquery": "^3.5.1",
      "jsdoc": "^3.6.6",
      "jsdom": "^16.4.0",
      "lint-staged": "^10.5.3",
      "prettier": "^2.2.1",
      "prettier-plugin-jsdoc": "^0.2.12",
      "tsd": "^0.14.0"
    },
    "scripts": {
      "test": "npm run lint && npm run test:jest && npm run test:types",
      "test:jest": "jest",
      "test:jest:cov": "npm run test:jest -- --coverage",
      "test:types": "tsd",
      "lint": "npm run lint:es && npm run lint:prettier",
      "lint:es": "eslint --ignore-path .gitignore .",
      "lint:prettier": "npm run format:prettier:raw -- --check",
      "format": "npm run format:es && npm run format:prettier",
      "format:es": "npm run lint:es -- --fix",
      "format:prettier": "npm run format:prettier:raw -- --write",
      "format:prettier:raw": "prettier \"**/*.{js,ts,md,json,yml}\" --ignore-path .gitignore",
      "build:docs": "jsdoc --configure jsdoc-config.json",
      "benchmark": "node benchmark/benchmark.js --regex \"^(?!.*highmem)\"",
      "pre-commit": "lint-staged"
    },
    "prettier": {
      "singleQuote": true,
      "tabWidth": 2
    },
    "lint-staged": {
      "*.js": [
        "prettier --write",
        "npm run test:lint -- --fix"
      ],
      "*.{json,md,ts,yml}": [
        "prettier --write"
      ]
    },
    "jest": {
      "testEnvironment": "node",
      "testMatch": [
        "<rootDir>/test/**/*.js"
      ],
      "testPathIgnorePatterns": [
        "/__fixtures__/"
      ]
    }
  }
  